pub struct NotificationProxyClient<S> { /* private fields */ }Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> NotificationProxyClient<S>
impl<S: AsyncRead + AsyncWrite + Unpin> NotificationProxyClient<S>
pub fn new(stream: S) -> Self
pub async fn observe( &mut self, notification: &str, ) -> Result<(), NotificationProxyError>
pub async fn post( &mut self, notification: &str, ) -> Result<(), NotificationProxyError>
pub async fn wait_for( &mut self, notification: &str, timeout: Duration, ) -> Result<(), NotificationProxyError>
pub async fn wait_for_springboard( &mut self, timeout: Duration, ) -> Result<(), NotificationProxyError>
pub async fn next_event( &mut self, timeout: Duration, ) -> Result<NotificationProxyEvent, NotificationProxyError>
pub async fn shutdown(&mut self) -> Result<(), NotificationProxyError>
pub async fn recv_event( &mut self, ) -> Result<NotificationEvent, NotificationProxyError>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for NotificationProxyClient<S>where
S: Freeze,
impl<S> RefUnwindSafe for NotificationProxyClient<S>where
S: RefUnwindSafe,
impl<S> Send for NotificationProxyClient<S>where
S: Send,
impl<S> Sync for NotificationProxyClient<S>where
S: Sync,
impl<S> Unpin for NotificationProxyClient<S>where
S: Unpin,
impl<S> UnsafeUnpin for NotificationProxyClient<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for NotificationProxyClient<S>where
S: UnwindSafe,
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