pub struct StreamEvent<T> { /* private fields */ }Expand description
One event, with the id a client would quote to resume after it.
Implementations§
Source§impl<T> StreamEvent<T>
impl<T> StreamEvent<T>
Sourcepub fn into_parts(self) -> (EventId, T)
pub fn into_parts(self) -> (EventId, T)
Unwraps into the parts.
Sourcepub const fn payload_mut(&mut self) -> &mut T
pub const fn payload_mut(&mut self) -> &mut T
Borrows the payload mutably, for a payload that is an in-place buffer.
Trait Implementations§
Source§impl<T: Clone> Clone for StreamEvent<T>
impl<T: Clone> Clone for StreamEvent<T>
Source§impl<T: Debug> Debug for StreamEvent<T>
impl<T: Debug> Debug for StreamEvent<T>
impl<T: Eq> Eq for StreamEvent<T>
Source§impl<T: PartialEq> PartialEq for StreamEvent<T>
impl<T: PartialEq> PartialEq for StreamEvent<T>
impl<T: PartialEq> StructuralPartialEq for StreamEvent<T>
Auto Trait Implementations§
impl<T> Freeze for StreamEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for StreamEvent<T>where
T: RefUnwindSafe,
impl<T> Send for StreamEvent<T>where
T: Send,
impl<T> Sync for StreamEvent<T>where
T: Sync,
impl<T> Unpin for StreamEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for StreamEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for StreamEvent<T>where
T: 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