pub enum ConnectorRequest {
Clone {
request: ServerEnd<CloneableMarker>,
control_handle: ConnectorControlHandle,
},
Connect {
channel: Channel,
control_handle: ConnectorControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: ConnectorControlHandle,
method_type: MethodType,
},
}
Expand description
A Connector
represents the sending end of a connection to a capability. A
Connector
presents as a service node when inserted into a
fuchsia.io.Directory
.
Variants§
Clone
Connect
Sends a channel to the Receiver
associated with this Connector
.
_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: ConnectorControlHandle
§
method_type: MethodType
Implementations§
Source§impl ConnectorRequest
impl ConnectorRequest
pub fn into_clone( self, ) -> Option<(ServerEnd<CloneableMarker>, ConnectorControlHandle)>
pub fn into_connect(self) -> Option<(Channel, ConnectorControlHandle)>
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 ConnectorRequest
impl !RefUnwindSafe for ConnectorRequest
impl Send for ConnectorRequest
impl Sync for ConnectorRequest
impl Unpin for ConnectorRequest
impl !UnwindSafe for ConnectorRequest
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