pub struct PushNodeStateRef<'a, I, A> {
pub id: I,
pub addr: A,
pub meta: &'a [u8],
pub incarnation: u32,
pub state: State,
pub protocol_version: ProtocolVersion,
pub delegate_version: DelegateVersion,
}Expand description
Push node state is the state push to the remote server.
Fields§
§id: IThe id of the push node state.
addr: AThe address of the push node state.
meta: &'a [u8]Metadata from the delegate for this push node state.
incarnation: u32The incarnation of the push node state.
state: StateThe state of the push node state.
protocol_version: ProtocolVersionThe protocol version of the push node state is speaking.
delegate_version: DelegateVersionThe delegate version of the push node state is speaking.
Implementations§
Source§impl<'a, I, A> PushNodeStateRef<'a, I, A>
impl<'a, I, A> PushNodeStateRef<'a, I, A>
Sourcepub const fn incarnation(&self) -> u32
pub const fn incarnation(&self) -> u32
Returns the incarnation of the push node state
Sourcepub const fn protocol_version(&self) -> ProtocolVersion
pub const fn protocol_version(&self) -> ProtocolVersion
Returns the protocol version of the push node state is speaking
Sourcepub const fn delegate_version(&self) -> DelegateVersion
pub const fn delegate_version(&self) -> DelegateVersion
Returns the delegate version of the push node state is speaking
Trait Implementations§
Source§impl<'a, I, A> Clone for PushNodeStateRef<'a, I, A>
impl<'a, I, A> Clone for PushNodeStateRef<'a, I, A>
Source§fn clone(&self) -> PushNodeStateRef<'a, I, A>
fn clone(&self) -> PushNodeStateRef<'a, 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<'a, I, A> Copy for PushNodeStateRef<'a, I, A>
Source§impl<'a, I, A> DataRef<'a, PushNodeState<I, A>> for PushNodeStateRef<'a, <I as Data>::Ref<'a>, <A as Data>::Ref<'a>>
impl<'a, I, A> DataRef<'a, PushNodeState<I, A>> for PushNodeStateRef<'a, <I as Data>::Ref<'a>, <A as Data>::Ref<'a>>
Source§fn decode(
src: &'a [u8],
) -> Result<(usize, PushNodeStateRef<'a, <I as Data>::Ref<'a>, <A as Data>::Ref<'a>>), DecodeError>
fn decode( src: &'a [u8], ) -> Result<(usize, PushNodeStateRef<'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 PushNodeStateRef<'a, I, A>
impl<'a, I, A> Debug for PushNodeStateRef<'a, I, A>
impl<'a, I, A> Eq for PushNodeStateRef<'a, I, A>
Source§impl<'a, I, A> From<PushNodeStateRef<'a, I, A>> for NodeStateRef<'a, I, A>
impl<'a, I, A> From<PushNodeStateRef<'a, I, A>> for NodeStateRef<'a, I, A>
Source§fn from(value: PushNodeStateRef<'a, I, A>) -> NodeStateRef<'a, I, A>
fn from(value: PushNodeStateRef<'a, I, A>) -> NodeStateRef<'a, I, A>
Converts to this type from the input type.
Source§impl<'a, I, A> Hash for PushNodeStateRef<'a, I, A>
impl<'a, I, A> Hash for PushNodeStateRef<'a, I, A>
Source§impl<'a, I, A> PartialEq for PushNodeStateRef<'a, I, A>
impl<'a, I, A> PartialEq for PushNodeStateRef<'a, I, A>
Source§fn eq(&self, other: &PushNodeStateRef<'a, I, A>) -> bool
fn eq(&self, other: &PushNodeStateRef<'a, I, A>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a, I, A> StructuralPartialEq for PushNodeStateRef<'a, I, A>
Auto Trait Implementations§
impl<'a, I, A> Freeze for PushNodeStateRef<'a, I, A>
impl<'a, I, A> RefUnwindSafe for PushNodeStateRef<'a, I, A>where
I: RefUnwindSafe,
A: RefUnwindSafe,
impl<'a, I, A> Send for PushNodeStateRef<'a, I, A>
impl<'a, I, A> Sync for PushNodeStateRef<'a, I, A>
impl<'a, I, A> Unpin for PushNodeStateRef<'a, I, A>
impl<'a, I, A> UnsafeUnpin for PushNodeStateRef<'a, I, A>where
I: UnsafeUnpin,
A: UnsafeUnpin,
impl<'a, I, A> UnwindSafe for PushNodeStateRef<'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