pub enum SnoopRequest {
Start {
follow: bool,
host_device: Option<String>,
responder: SnoopStartResponder,
},
}
Expand description
Interface to receive packets recorded as received or transmitted for a Bluetooth host.
Packets are received by the client as datagrams through the fidl channel as OnPacket
events.
Variants§
Start
Subscribe to receive packets from the server. Packets that have been recorded are sent first.
If follow
is true, the channel stays open and packets are sent to the client as
the snoop server receives them. If follow
is false, the channel is closed by the server
when all recorded packets have been sent.
A host_device
name may be provided; if so, only events from that host are sent to the client.
If host_device
is absent, the client is sent events from all host devices.
Errors:
Start
can only be called once per connection. After the first request, subsequent requests
always return an error.
host_device
values that are not recognized by the server return an error.
Implementations§
source§impl SnoopRequest
impl SnoopRequest
pub fn into_start(self) -> Option<(bool, Option<String>, SnoopStartResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL