pub struct StackSynchronousProxy { /* private fields */ }Implementations§
Source§impl StackSynchronousProxy
impl StackSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<StackEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<StackEvent, 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 set_dhcp_client_enabled(
&self,
id: u64,
enable: bool,
___deadline: MonotonicInstant,
) -> Result<StackSetDhcpClientEnabledResult, Error>
pub fn set_dhcp_client_enabled( &self, id: u64, enable: bool, ___deadline: MonotonicInstant, ) -> Result<StackSetDhcpClientEnabledResult, Error>
Enables or disables the DHCP client on an interface. TODO(https://fxbug.dev/42162065): Remove this once the DHCP client is moved out of the netstack.
Sourcepub fn bridge_interfaces(
&self,
interfaces: &[u64],
bridge: ServerEnd<ControlMarker>,
) -> Result<(), Error>
pub fn bridge_interfaces( &self, interfaces: &[u64], bridge: ServerEnd<ControlMarker>, ) -> Result<(), Error>
Creates a bridge over the provided interfaces.
If the bridge can’t be created, bridge is closed with a BAD_PORT
termination reason.
NOTE: We’re shoehorning bridging into the admin/Control API and
reassigning meaning to BAD_PORT because we don’t want to leak
bridging-specific errors there. The POR is that bridging is going to get
its own API at some point.
Bridge lifetime is controlled through the bridge handle.
Trait Implementations§
Source§impl Debug for StackSynchronousProxy
impl Debug for StackSynchronousProxy
Source§impl From<Channel> for StackSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for StackSynchronousProxy
Available on Fuchsia only.
Source§impl From<StackSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<StackSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: StackSynchronousProxy) -> Self
fn from(value: StackSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for StackSynchronousProxy
Available on Fuchsia only.
impl FromClient for StackSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = StackMarker
type Protocol = StackMarker
The protocol.
Source§fn from_client(value: ClientEnd<StackMarker>) -> Self
fn from_client(value: ClientEnd<StackMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for StackSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for StackSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = StackProxy
type Proxy = StackProxy
The async proxy for the same protocol.
Source§type Protocol = StackMarker
type Protocol = StackMarker
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 StackSynchronousProxy
impl RefUnwindSafe for StackSynchronousProxy
impl Send for StackSynchronousProxy
impl Sync for StackSynchronousProxy
impl Unpin for StackSynchronousProxy
impl UnsafeUnpin for StackSynchronousProxy
impl UnwindSafe for StackSynchronousProxy
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