pub struct PacketCaptureProviderSynchronousProxy { /* private fields */ }Implementations§
Source§impl PacketCaptureProviderSynchronousProxy
impl PacketCaptureProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PacketCaptureProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PacketCaptureProviderEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn start_rolling(
&self,
common_params: CommonPacketCaptureParams,
params: &RollingPacketCaptureParams,
___deadline: MonotonicInstant,
) -> Result<PacketCaptureProviderStartRollingResult, Error>
pub fn start_rolling( &self, common_params: CommonPacketCaptureParams, params: &RollingPacketCaptureParams, ___deadline: MonotonicInstant, ) -> Result<PacketCaptureProviderStartRollingResult, Error>
Start a rolling packet capture.
Lifetime of the packet capture is tied to the pipelined channel unless
[RollingPacketCapture.Detach] has been called.
§Error
All variants of PacketCaptureStartError may be returned by this
method.
Sourcepub fn reconnect_rolling(
&self,
name: &str,
___deadline: MonotonicInstant,
) -> Result<PacketCaptureProviderReconnectRollingResult, Error>
pub fn reconnect_rolling( &self, name: &str, ___deadline: MonotonicInstant, ) -> Result<PacketCaptureProviderReconnectRollingResult, Error>
Reconnects to a packet capture previously started with
[PacketCaptureProvider/StartRolling].
Note reconnecting does not reattach the lifetime of the packet capture to
channel.
Trait Implementations§
Source§impl From<Channel> for PacketCaptureProviderSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for PacketCaptureProviderSynchronousProxy
Available on Fuchsia only.
Source§impl From<PacketCaptureProviderSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<PacketCaptureProviderSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: PacketCaptureProviderSynchronousProxy) -> Self
fn from(value: PacketCaptureProviderSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for PacketCaptureProviderSynchronousProxy
Available on Fuchsia only.
impl FromClient for PacketCaptureProviderSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = PacketCaptureProviderMarker
type Protocol = PacketCaptureProviderMarker
The protocol.
Source§fn from_client(value: ClientEnd<PacketCaptureProviderMarker>) -> Self
fn from_client(value: ClientEnd<PacketCaptureProviderMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for PacketCaptureProviderSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for PacketCaptureProviderSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = PacketCaptureProviderProxy
type Proxy = PacketCaptureProviderProxy
The async proxy for the same protocol.
Source§type Protocol = PacketCaptureProviderMarker
type Protocol = PacketCaptureProviderMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PacketCaptureProviderSynchronousProxy
impl RefUnwindSafe for PacketCaptureProviderSynchronousProxy
impl Send for PacketCaptureProviderSynchronousProxy
impl Sync for PacketCaptureProviderSynchronousProxy
impl Unpin for PacketCaptureProviderSynchronousProxy
impl UnsafeUnpin for PacketCaptureProviderSynchronousProxy
impl UnwindSafe for PacketCaptureProviderSynchronousProxy
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