pub enum ConnectorRouterRequest {
Route {
request: RouteRequest,
instance_token: EventPair,
handle: EventPair,
responder: ConnectorRouterRouteResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: ConnectorRouterControlHandle,
method_type: MethodType,
},
}Expand description
A factory for Connector capabilities.
Variants§
Route
Attempts to produce a Connector capability from this
ConnectorRouter.
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: ConnectorRouterControlHandle§
method_type: MethodTypeImplementations§
Source§impl ConnectorRouterRequest
impl ConnectorRouterRequest
pub fn into_route( self, ) -> Option<(RouteRequest, EventPair, EventPair, ConnectorRouterRouteResponder)>
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 ConnectorRouterRequest
impl !RefUnwindSafe for ConnectorRouterRequest
impl Send for ConnectorRouterRequest
impl Sync for ConnectorRouterRequest
impl Unpin for ConnectorRouterRequest
impl !UnwindSafe for ConnectorRouterRequest
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