pub enum PacketObserverRequest {
Observe {
payload: DevicePackets,
responder: PacketObserverObserveResponder,
},
Error {
payload: CaptureError,
control_handle: PacketObserverControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: PacketObserverControlHandle,
method_type: MethodType,
},
}
Variants§
Observe
Observe some packets which have been transmitted over HCI. Return ack is used for flow control.
Error
Called when an error occurs either during capture or while starting capture. The protocol will be closed after this is sent.
_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: PacketObserverControlHandle
§
method_type: MethodType
Implementations§
Source§impl PacketObserverRequest
impl PacketObserverRequest
pub fn into_observe( self, ) -> Option<(DevicePackets, PacketObserverObserveResponder)>
pub fn into_error(self) -> Option<(CaptureError, PacketObserverControlHandle)>
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 PacketObserverRequest
impl !RefUnwindSafe for PacketObserverRequest
impl Send for PacketObserverRequest
impl Sync for PacketObserverRequest
impl Unpin for PacketObserverRequest
impl !UnwindSafe for PacketObserverRequest
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