pub struct AliveRef<'a, I, A> { /* private fields */ }Expand description
The reference type of Alive.
Implementations§
Source§impl<'a, I, A> AliveRef<'a, I, A>
impl<'a, I, A> AliveRef<'a, I, A>
Sourcepub const fn incarnation(&self) -> u32
pub const fn incarnation(&self) -> u32
Returns the incarnation of the alive message.
Sourcepub const fn protocol_version(&self) -> ProtocolVersion
pub const fn protocol_version(&self) -> ProtocolVersion
Returns the protocol version of the alive message is speaking.
Sourcepub const fn delegate_version(&self) -> DelegateVersion
pub const fn delegate_version(&self) -> DelegateVersion
Returns the delegate version of the alive message is speaking.
Trait Implementations§
impl<'a, I, A> Copy for AliveRef<'a, I, A>
Source§impl<'a, I, A> DataRef<'a, Alive<I, A>> for AliveRef<'a, <I as Data>::Ref<'a>, <A as Data>::Ref<'a>>
impl<'a, I, A> DataRef<'a, Alive<I, A>> for AliveRef<'a, <I as Data>::Ref<'a>, <A as Data>::Ref<'a>>
Source§fn decode(
src: &'a [u8],
) -> Result<(usize, AliveRef<'a, <I as Data>::Ref<'a>, <A as Data>::Ref<'a>>), DecodeError>
fn decode( src: &'a [u8], ) -> Result<(usize, AliveRef<'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.
impl<'a, I, A> Eq for AliveRef<'a, I, A>
Source§impl<'a, I, A> From<AliveRef<'a, I, A>> for MessageRef<'a, I, A>
impl<'a, I, A> From<AliveRef<'a, I, A>> for MessageRef<'a, I, A>
Source§fn from(value: AliveRef<'a, I, A>) -> MessageRef<'a, I, A>
fn from(value: AliveRef<'a, I, A>) -> MessageRef<'a, I, A>
Converts to this type from the input type.
Source§impl<'a, I, A> PartialEq for AliveRef<'a, I, A>
impl<'a, I, A> PartialEq for AliveRef<'a, I, A>
impl<'a, I, A> StructuralPartialEq for AliveRef<'a, I, A>
Auto Trait Implementations§
impl<'a, I, A> Freeze for AliveRef<'a, I, A>
impl<'a, I, A> RefUnwindSafe for AliveRef<'a, I, A>where
I: RefUnwindSafe,
A: RefUnwindSafe,
impl<'a, I, A> Send for AliveRef<'a, I, A>
impl<'a, I, A> Sync for AliveRef<'a, I, A>
impl<'a, I, A> Unpin for AliveRef<'a, I, A>
impl<'a, I, A> UnsafeUnpin for AliveRef<'a, I, A>where
I: UnsafeUnpin,
A: UnsafeUnpin,
impl<'a, I, A> UnwindSafe for AliveRef<'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