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 get_pairing_state_watcher(
&self,
watcher: ServerEnd<PairingStateWatcherMarker>,
) -> Result<(), Error>
pub fn get_pairing_state_watcher( &self, watcher: ServerEnd<PairingStateWatcherMarker>, ) -> Result<(), Error>
Returns a PairingStateWatcher to watch for changes in pairing state.
Sourcepub fn get_svc_directory_watcher(
&self,
endpoint_id: u64,
watcher: ServerEnd<SvcDirectoryWatcherMarker>,
) -> Result<(), Error>
pub fn get_svc_directory_watcher( &self, endpoint_id: u64, watcher: ServerEnd<SvcDirectoryWatcherMarker>, ) -> Result<(), Error>
Returns a SvcDirectoryWatcher to watch changes in the Weave service directory for a particular endpoint.
Sourcepub fn get_qr_code(
&self,
___deadline: MonotonicInstant,
) -> Result<StackGetQrCodeResult, Error>
pub fn get_qr_code( &self, ___deadline: MonotonicInstant, ) -> Result<StackGetQrCodeResult, Error>
Returns a QR code that can be used in the pairing process.
Sourcepub fn reset_config(
&self,
flags: ResetConfigFlags,
___deadline: MonotonicInstant,
) -> Result<StackResetConfigResult, Error>
pub fn reset_config( &self, flags: ResetConfigFlags, ___deadline: MonotonicInstant, ) -> Result<StackResetConfigResult, Error>
Reset the Weave configuration.
Trait Implementations§
Source§impl Debug for StackSynchronousProxy
impl Debug for StackSynchronousProxy
Source§impl SynchronousProxy for StackSynchronousProxy
impl SynchronousProxy for StackSynchronousProxy
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 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