pub enum SnoopRequest {
Start {
payload: SnoopStartRequest,
control_handle: SnoopControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: SnoopControlHandle,
method_type: MethodType,
},
}
Expand description
Interface to receive packets recorded as received or transmitted for a Bluetooth host.
Variants§
Start
Subscribe to receive packets from the server. Packets that have been recorded are sent first.
If follow
is true, the protocol stays open and packets are returned to the client as
the snoop server receives them. If follow
is missing or false, the client is closed
when all currently recorded packets have been sent.
A host_device
name may be provided; if so, only events from that host are sent.
If host_device
is absent, packets from all host devices are sent.
Errors are reported through the client.
_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: SnoopControlHandle
§
method_type: MethodType
Implementations§
Source§impl SnoopRequest
impl SnoopRequest
pub fn into_start(self) -> Option<(SnoopStartRequest, SnoopControlHandle)>
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 SnoopRequest
impl !RefUnwindSafe for SnoopRequest
impl Send for SnoopRequest
impl Sync for SnoopRequest
impl Unpin for SnoopRequest
impl !UnwindSafe for SnoopRequest
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