pub struct PushPullRef<'a, I, A> {
pub join: bool,
pub states: RepeatedDecoder<'a>,
pub user_data: &'a [u8],
pub _m: PhantomData<(I, A)>,
}Expand description
The reference type of Push pull message.
Fields§
§join: boolWhether the push pull message is a join message.
states: RepeatedDecoder<'a>The states of the push pull message.
user_data: &'a [u8]The user data of the push pull message.
_m: PhantomData<(I, A)>Implementations§
Source§impl<'a, I, A> PushPullRef<'a, I, A>
impl<'a, I, A> PushPullRef<'a, I, A>
Trait Implementations§
Source§impl<I, A> Clone for PushPullRef<'_, I, A>
impl<I, A> Clone for PushPullRef<'_, I, A>
Source§fn clone(&self) -> PushPullRef<'_, I, A>
fn clone(&self) -> PushPullRef<'_, I, A>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<I, A> Copy for PushPullRef<'_, I, A>
Source§impl<'a, I, A> DataRef<'a, PushPull<I, A>> for PushPullRef<'a, <I as Data>::Ref<'a>, <A as Data>::Ref<'a>>
impl<'a, I, A> DataRef<'a, PushPull<I, A>> for PushPullRef<'a, <I as Data>::Ref<'a>, <A as Data>::Ref<'a>>
Source§fn decode(
src: &'a [u8],
) -> Result<(usize, PushPullRef<'a, <I as Data>::Ref<'a>, <A as Data>::Ref<'a>>), DecodeError>
fn decode( src: &'a [u8], ) -> Result<(usize, PushPullRef<'a, <I as Data>::Ref<'a>, <A as Data>::Ref<'a>>), DecodeError>
Decodes the reference type from a buffer. Read more
Source§fn decode_length_delimited(src: &'a [u8]) -> Result<(usize, Self), DecodeError>where
Self: Sized,
fn decode_length_delimited(src: &'a [u8]) -> Result<(usize, Self), DecodeError>where
Self: Sized,
Decodes a length-delimited reference instance of the message from the buffer.
Source§impl<'a, I, A> Debug for PushPullRef<'a, I, A>
impl<'a, I, A> Debug for PushPullRef<'a, I, A>
impl<'a, I, A> Eq for PushPullRef<'a, I, A>
Source§impl<'a, I, A> From<PushPullRef<'a, I, A>> for MessageRef<'a, I, A>
impl<'a, I, A> From<PushPullRef<'a, I, A>> for MessageRef<'a, I, A>
Source§fn from(value: PushPullRef<'a, I, A>) -> MessageRef<'a, I, A>
fn from(value: PushPullRef<'a, I, A>) -> MessageRef<'a, I, A>
Converts to this type from the input type.
Source§impl<'a, I, A> Hash for PushPullRef<'a, I, A>
impl<'a, I, A> Hash for PushPullRef<'a, I, A>
Source§impl<'a, I, A> PartialEq for PushPullRef<'a, I, A>
impl<'a, I, A> PartialEq for PushPullRef<'a, I, A>
Source§fn eq(&self, other: &PushPullRef<'a, I, A>) -> bool
fn eq(&self, other: &PushPullRef<'a, I, A>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a, I, A> StructuralPartialEq for PushPullRef<'a, I, A>
Auto Trait Implementations§
impl<'a, I, A> Freeze for PushPullRef<'a, I, A>
impl<'a, I, A> RefUnwindSafe for PushPullRef<'a, I, A>where
I: RefUnwindSafe,
A: RefUnwindSafe,
impl<'a, I, A> Send for PushPullRef<'a, I, A>
impl<'a, I, A> Sync for PushPullRef<'a, I, A>
impl<'a, I, A> Unpin for PushPullRef<'a, I, A>
impl<'a, I, A> UnsafeUnpin for PushPullRef<'a, I, A>
impl<'a, I, A> UnwindSafe for PushPullRef<'a, I, A>where
I: UnwindSafe,
A: 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> Equivalent<K> for Q
impl<Q, K> Equivalent<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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more