pub enum DiscoverySessionRequest {
Stop {
control_handle: DiscoverySessionControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: DiscoverySessionControlHandle,
method_type: MethodType,
},
}
Expand description
A token protocol representing discovery being enabled.
Variants§
Stop
Closes this DiscoverySession on the server end, ending discovery if this is the last open DiscoverySession. This can be used to synchronize the closure on both ends of the protocol. If synchronization is not required, the DiscoverySession protocol can simply be closed instead.
Fields
§
control_handle: DiscoverySessionControlHandle
_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: DiscoverySessionControlHandle
§
method_type: MethodType
Implementations§
Source§impl DiscoverySessionRequest
impl DiscoverySessionRequest
pub fn into_stop(self) -> Option<DiscoverySessionControlHandle>
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 DiscoverySessionRequest
impl !RefUnwindSafe for DiscoverySessionRequest
impl Send for DiscoverySessionRequest
impl Sync for DiscoverySessionRequest
impl Unpin for DiscoverySessionRequest
impl !UnwindSafe for DiscoverySessionRequest
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