pub struct StackProviderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl StackProviderSynchronousProxy
impl StackProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<StackProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<StackProviderEvent, 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_wlan_network_config_provider(
&self,
provider: ClientEnd<WlanNetworkConfigProviderMarker>,
) -> Result<(), Error>
pub fn set_wlan_network_config_provider( &self, provider: ClientEnd<WlanNetworkConfigProviderMarker>, ) -> Result<(), Error>
Registers a WLAN network configuration provider with WeaveStack. Only one provider can be set at a time.
Attempts to set a new provider while there is an active provider will close the channel to active provider and will be replaced by the new provider.
TODO(https://fxbug.dev/42140705): This interface may be deprecated when current WLAN network configuration can be shared amongst multiple components.
Trait Implementations§
Source§impl SynchronousProxy for StackProviderSynchronousProxy
impl SynchronousProxy for StackProviderSynchronousProxy
Source§type Proxy = StackProviderProxy
type Proxy = StackProviderProxy
The async proxy for the same protocol.
Source§type Protocol = StackProviderMarker
type Protocol = StackProviderMarker
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 StackProviderSynchronousProxy
impl RefUnwindSafe for StackProviderSynchronousProxy
impl Send for StackProviderSynchronousProxy
impl Sync for StackProviderSynchronousProxy
impl Unpin for StackProviderSynchronousProxy
impl UnwindSafe for StackProviderSynchronousProxy
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