pub struct ConfigurableNetstackSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ConfigurableNetstackSynchronousProxy
impl ConfigurableNetstackSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ConfigurableNetstackEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ConfigurableNetstackEvent, 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 configure_interface(
&self,
payload: InterfaceOptions,
___deadline: MonotonicInstant,
) -> Result<ConfigurableNetstackConfigureInterfaceResult, Error>
pub fn configure_interface( &self, payload: InterfaceOptions, ___deadline: MonotonicInstant, ) -> Result<ConfigurableNetstackConfigureInterfaceResult, Error>
Installs a device in the netstack with the provided configuration.
- request
options
configuration options on the interface.
- error
INVALID_ARGS
ifoptions
is invalid, as validated by the configurable-netstack. - error
REJECTED_BY_NETSTACK
if an error is returned from an operation on the netstack, e.g. attempting to add an invalid route. - error
INTERNAL
if an unexpected error is encountered that is not caused by the client, e.g. an error communicating with the netstack.
Trait Implementations§
Source§impl SynchronousProxy for ConfigurableNetstackSynchronousProxy
impl SynchronousProxy for ConfigurableNetstackSynchronousProxy
Source§type Proxy = ConfigurableNetstackProxy
type Proxy = ConfigurableNetstackProxy
The async proxy for the same protocol.
Source§type Protocol = ConfigurableNetstackMarker
type Protocol = ConfigurableNetstackMarker
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 ConfigurableNetstackSynchronousProxy
impl RefUnwindSafe for ConfigurableNetstackSynchronousProxy
impl Send for ConfigurableNetstackSynchronousProxy
impl Sync for ConfigurableNetstackSynchronousProxy
impl Unpin for ConfigurableNetstackSynchronousProxy
impl UnwindSafe for ConfigurableNetstackSynchronousProxy
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