pub struct StreamItemGen<Payload: Encode> {
pub seq: u64,
pub payload: Payload,
}
Fields§
§seq: u64
§payload: Payload
Trait Implementations§
Source§impl<Payload: Encode> Encode for StreamItemGen<Payload>
impl<Payload: Encode> Encode for StreamItemGen<Payload>
fn scratch_len(&self) -> usize
fn encode(&self, cursor: &mut EncodeCursor<'_>)
impl<T: Owned, Payload: Encode + Compatible<T>> Compatible<StreamItem<T>> for StreamItemGen<Payload>
impl<T: Owned, Payload: Encode + Compatible<T>> Compatible<StreamItemGen<Payload>> for StreamItem<T>
Auto Trait Implementations§
impl<Payload> Freeze for StreamItemGen<Payload>where
Payload: Freeze,
impl<Payload> RefUnwindSafe for StreamItemGen<Payload>where
Payload: RefUnwindSafe,
impl<Payload> Send for StreamItemGen<Payload>where
Payload: Send,
impl<Payload> Sync for StreamItemGen<Payload>where
Payload: Sync,
impl<Payload> Unpin for StreamItemGen<Payload>where
Payload: Unpin,
impl<Payload> UnwindSafe for StreamItemGen<Payload>where
Payload: 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