pub enum DictionaryRouterRequest {
Route {
request: RouteRequest,
instance_token: EventPair,
handle: EventPair,
responder: DictionaryRouterRouteResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: DictionaryRouterControlHandle,
method_type: MethodType,
},
}Expand description
A factory for Dictionary capabilities.
Variants§
Route
Attempts to produce a Dictionary capability from this
DictionaryRouter.
request contains context for this route, and instance_token
references the component that the routing operation is being performed
for.
This will return:
SUCCESSifhandlehas been associated with a connector.UNAVAILABLEif the capability is unavailable, in which casehandlewill be closed.- An error, if the operation failed.
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: DictionaryRouterControlHandle§
method_type: MethodTypeImplementations§
Source§impl DictionaryRouterRequest
impl DictionaryRouterRequest
pub fn into_route( self, ) -> Option<(RouteRequest, EventPair, EventPair, DictionaryRouterRouteResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DictionaryRouterRequest
impl !RefUnwindSafe for DictionaryRouterRequest
impl Send for DictionaryRouterRequest
impl Sync for DictionaryRouterRequest
impl Unpin for DictionaryRouterRequest
impl !UnwindSafe for DictionaryRouterRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more