pub struct StreamSubscription<T> { /* private fields */ }Implementations§
Source§impl<T: Owned> StreamSubscription<T>
impl<T: Owned> StreamSubscription<T>
pub async fn next(&mut self) -> DecodeResult<T>
pub async fn next_lazy(&mut self) -> DecodeResult<LazyBuf<T, Packet>>
pub fn try_next(&mut self) -> DecodeResult<Option<T>>
pub fn try_next_lazy(&mut self) -> DecodeResult<Option<LazyBuf<T, Packet>>>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for StreamSubscription<T>
impl<T> !RefUnwindSafe for StreamSubscription<T>
impl<T> !Send for StreamSubscription<T>
impl<T> !Sync for StreamSubscription<T>
impl<T> Unpin for StreamSubscription<T>where
T: Unpin,
impl<T> !UnwindSafe for StreamSubscription<T>
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