Struct fidl_fuchsia_bluetooth_snoop::SnoopProxy
source · pub struct SnoopProxy { /* private fields */ }
Implementations§
source§impl SnoopProxy
impl SnoopProxy
sourcepub fn take_event_stream(&self) -> SnoopEventStream
pub fn take_event_stream(&self) -> SnoopEventStream
Get a Stream of events from the remote end of the Snoop protocol
Panics
Panics if the event stream was already taken.
sourcepub fn start(
&self,
follow: bool,
host_device: Option<&str>
) -> QueryResponseFut<Status>
pub fn start( &self, follow: bool, host_device: Option<&str> ) -> QueryResponseFut<Status>
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.
Trait Implementations§
source§impl Clone for SnoopProxy
impl Clone for SnoopProxy
source§fn clone(&self) -> SnoopProxy
fn clone(&self) -> SnoopProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SnoopProxy
impl Debug for SnoopProxy
source§impl Proxy for SnoopProxy
impl Proxy for SnoopProxy
§type Protocol = SnoopMarker
type Protocol = SnoopMarker
Proxy
controls.