Skip to main content

PushPullRef

Struct PushPullRef 

Source
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: bool

Whether 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>

Source

pub const fn join(&self) -> bool

Returns whether the push pull message is a join message

Source

pub const fn states(&self) -> &RepeatedDecoder<'a>

Returns the states of the push pull message

Source

pub const fn user_data(&self) -> &'a [u8]

Returns the user data of the push pull message

Trait Implementations§

Source§

impl<I, A> Clone for PushPullRef<'_, I, A>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<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>>
where I: Data, A: Data,

Source§

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,

Decodes a length-delimited reference instance of the message from the buffer.
Source§

impl<'a, I, A> Debug for PushPullRef<'a, I, A>
where I: Debug, A: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'a, I, A> Eq for PushPullRef<'a, I, A>
where I: Eq, A: Eq,

Source§

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>

Converts to this type from the input type.
Source§

impl<'a, I, A> Hash for PushPullRef<'a, I, A>
where I: Hash, A: Hash,

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'a, I, A> PartialEq for PushPullRef<'a, I, A>
where I: PartialEq, A: PartialEq,

Source§

fn eq(&self, other: &PushPullRef<'a, I, A>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, I, A> StructuralPartialEq for PushPullRef<'a, I, A>
where I: PartialEq, A: PartialEq,

Auto Trait Implementations§

§

impl<'a, I, A> Freeze for PushPullRef<'a, I, A>

§

impl<'a, I, A> RefUnwindSafe for PushPullRef<'a, I, A>

§

impl<'a, I, A> Send for PushPullRef<'a, I, A>
where I: Send, A: Send,

§

impl<'a, I, A> Sync for PushPullRef<'a, I, A>
where I: Sync, A: Sync,

§

impl<'a, I, A> Unpin for PushPullRef<'a, I, A>
where I: Unpin, A: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more