pub struct StreamItem<T> {
pub seq: u64,
pub payload: T,
}
Fields§
§seq: u64
§payload: T
Trait Implementations§
Source§impl<T: Clone> Clone for StreamItem<T>
impl<T: Clone> Clone for StreamItem<T>
Source§fn clone(&self) -> StreamItem<T>
fn clone(&self) -> StreamItem<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for StreamItem<T>
impl<T: Debug> Debug for StreamItem<T>
Source§impl<'a, T: Decode<'a>> Decode<'a> for StreamItem<T>
impl<'a, T: Decode<'a>> Decode<'a> for StreamItem<T>
fn decode(cursor: &DecodeCursor<'a>) -> DecodeResult<Self>
Source§impl<T: Encode> Encode for StreamItem<T>
impl<T: Encode> Encode for StreamItem<T>
fn scratch_len(&self) -> usize
fn encode(&self, cursor: &mut EncodeCursor<'_>)
Source§impl<T: Hash> Hash for StreamItem<T>
impl<T: Hash> Hash for StreamItem<T>
Source§impl<T: Ord> Ord for StreamItem<T>
impl<T: Ord> Ord for StreamItem<T>
Source§fn cmp(&self, other: &StreamItem<T>) -> Ordering
fn cmp(&self, other: &StreamItem<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: Owned> Owned for StreamItem<T>
impl<T: Owned> Owned for StreamItem<T>
type Lazy<'a> = StreamItemLazy<'a, T>
fn lazy_to_owned(lazy: Self::Lazy<'_>) -> DecodeResult<Self>
Source§impl<T: PartialEq> PartialEq for StreamItem<T>
impl<T: PartialEq> PartialEq for StreamItem<T>
Source§impl<T: PartialOrd> PartialOrd for StreamItem<T>
impl<T: PartialOrd> PartialOrd for StreamItem<T>
Source§impl<'a, T: Owned> TryFrom<StreamItemLazy<'a, T>> for StreamItem<T>
impl<'a, T: Owned> TryFrom<StreamItemLazy<'a, T>> for StreamItem<T>
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
impl<T: Owned> Compatible<StreamItem<T>> for StreamItem<T>
impl<T: Owned, Payload: Encode + Compatible<T>> Compatible<StreamItem<T>> for StreamItemGen<Payload>
impl<'a, T: Owned> Compatible<StreamItem<T>> for StreamItemLazy<'a, T>
impl<T: Owned, Payload: Encode + Compatible<T>> Compatible<StreamItemGen<Payload>> for StreamItem<T>
impl<'a, T: Owned> Compatible<StreamItemLazy<'a, T>> for StreamItem<T>
impl<T: Copy> Copy for StreamItem<T>
impl<T: Eq> Eq for StreamItem<T>
impl<T> StructuralPartialEq for StreamItem<T>
Auto Trait Implementations§
impl<T> Freeze for StreamItem<T>where
T: Freeze,
impl<T> RefUnwindSafe for StreamItem<T>where
T: RefUnwindSafe,
impl<T> Send for StreamItem<T>where
T: Send,
impl<T> Sync for StreamItem<T>where
T: Sync,
impl<T> Unpin for StreamItem<T>where
T: Unpin,
impl<T> UnwindSafe for StreamItem<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.