pub struct StackProxy { /* private fields */ }Implementations§
Source§impl StackProxy
impl StackProxy
Sourcepub fn take_event_stream(&self) -> StackEventStream
pub fn take_event_stream(&self) -> StackEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn set_dhcp_client_enabled(
&self,
id: u64,
enable: bool,
) -> QueryResponseFut<StackSetDhcpClientEnabledResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn set_dhcp_client_enabled( &self, id: u64, enable: bool, ) -> QueryResponseFut<StackSetDhcpClientEnabledResult, DefaultFuchsiaResourceDialect> ⓘ
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 Clone for StackProxy
impl Clone for StackProxy
Source§impl Debug for StackProxy
impl Debug for StackProxy
Source§impl Proxy for StackProxy
impl Proxy for StackProxy
Source§type Protocol = StackMarker
type Protocol = StackMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Source§impl StackProxyInterface for StackProxy
impl StackProxyInterface for StackProxy
type SetDhcpClientEnabledResponseFut = QueryResponseFut<Result<(), Error>>
fn set_dhcp_client_enabled( &self, id: u64, enable: bool, ) -> Self::SetDhcpClientEnabledResponseFut
fn bridge_interfaces( &self, interfaces: &[u64], bridge: ServerEnd<ControlMarker>, ) -> Result<(), Error>
Auto Trait Implementations§
impl !RefUnwindSafe for StackProxy
impl !UnwindSafe for StackProxy
impl Freeze for StackProxy
impl Send for StackProxy
impl Sync for StackProxy
impl Unpin for StackProxy
impl UnsafeUnpin for StackProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.