pub struct NotificationClient<S> { /* private fields */ }Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin + Send> NotificationClient<S>
impl<S: AsyncRead + AsyncWrite + Unpin + Send> NotificationClient<S>
pub async fn connect(stream: S) -> Result<Self, DtxError>
pub async fn next_notification(&mut self) -> Result<NotificationEvent, DtxError>
Auto Trait Implementations§
impl<S> Freeze for NotificationClient<S>where
S: Freeze,
impl<S> RefUnwindSafe for NotificationClient<S>where
S: RefUnwindSafe,
impl<S> Send for NotificationClient<S>where
S: Send,
impl<S> Sync for NotificationClient<S>where
S: Sync,
impl<S> Unpin for NotificationClient<S>where
S: Unpin,
impl<S> UnsafeUnpin for NotificationClient<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for NotificationClient<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