pub enum EpskcConnectorRequest {
Connect {
name: String,
server_end: ServerEnd<EpskcMarker>,
control_handle: EpskcConnectorControlHandle,
},
#[non_exhaustive]
_UnknownMethod {
ordinal: u64,
control_handle: EpskcConnectorControlHandle,
method_type: MethodType,
},
}
Expand description
Protocol for connecting to [Epskc
] on a LoWPAN device.
Variants§
Connect
Connects to the [Epskc
] protocol on the
named LoWPAN device.
The name of the interface can be learned by calling
[fuchsia.lowpan/Lookup.GetDevices
].
If there is an error in processing this request the given channel is closed and an epitaph code used to describe the reason for the failure:
ZX_ERR_INVALID_ARGUMENT
: The given interface name was not formatted correctly or otherwise invalid.ZX_ERR_NOT_FOUND
: No interface was found with the given name.ZX_ERR_NOT_SUPPORTED
: The interface exists but does not support this protocol.
_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: EpskcConnectorControlHandle
§
method_type: MethodType
Implementations§
Source§impl EpskcConnectorRequest
impl EpskcConnectorRequest
pub fn into_connect( self, ) -> Option<(String, ServerEnd<EpskcMarker>, EpskcConnectorControlHandle)>
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 EpskcConnectorRequest
impl !RefUnwindSafe for EpskcConnectorRequest
impl Send for EpskcConnectorRequest
impl Sync for EpskcConnectorRequest
impl Unpin for EpskcConnectorRequest
impl !UnwindSafe for EpskcConnectorRequest
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