pub struct MemberEvent<I, A> { /* private fields */ }Expand description
MemberEvent is the struct used for member related events Because Serf coalesces events, an event may contain multiple members.
Implementations§
Source§impl<I, A> MemberEvent<I, A>
impl<I, A> MemberEvent<I, A>
Trait Implementations§
Source§impl<I, A> CheapClone for MemberEvent<I, A>
impl<I, A> CheapClone for MemberEvent<I, A>
Source§fn cheap_clone(&self) -> Self
fn cheap_clone(&self) -> Self
Returns a copy of the value.
Source§impl<I, A> Clone for MemberEvent<I, A>
impl<I, A> Clone for MemberEvent<I, A>
Source§impl<I, A> Display for MemberEvent<I, A>
impl<I, A> Display for MemberEvent<I, A>
Source§impl<T, D> From<MemberEvent<<T as Transport>::Id, <T as Transport>::ResolvedAddress>> for Event<T, D>
impl<T, D> From<MemberEvent<<T as Transport>::Id, <T as Transport>::ResolvedAddress>> for Event<T, D>
Source§fn from(value: MemberEvent<T::Id, T::ResolvedAddress>) -> Self
fn from(value: MemberEvent<T::Id, T::ResolvedAddress>) -> Self
Converts to this type from the input type.
Source§impl<I, A> From<MemberEvent<I, A>> for (MemberEventType, Arc<TinyVec<Member<I, A>>>)
impl<I, A> From<MemberEvent<I, A>> for (MemberEventType, Arc<TinyVec<Member<I, A>>>)
Source§fn from(event: MemberEvent<I, A>) -> Self
fn from(event: MemberEvent<I, A>) -> Self
Converts to this type from the input type.
impl<I, A> StructuralPartialEq for MemberEvent<I, A>
Auto Trait Implementations§
impl<I, A> Freeze for MemberEvent<I, A>
impl<I, A> RefUnwindSafe for MemberEvent<I, A>where
I: RefUnwindSafe,
A: RefUnwindSafe,
impl<I, A> Send for MemberEvent<I, A>
impl<I, A> Sync for MemberEvent<I, A>
impl<I, A> Unpin for MemberEvent<I, A>
impl<I, A> UnwindSafe for MemberEvent<I, A>where
I: RefUnwindSafe,
A: RefUnwindSafe,
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<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