pub struct TopologyChange {
pub change_type: TopologyChangeType,
pub addr: SocketAddr,
}
Expand description
Events related to change in the cluster topology
Fields§
§change_type: TopologyChangeType
§addr: SocketAddr
Trait Implementations§
Source§impl Clone for TopologyChange
impl Clone for TopologyChange
Source§fn clone(&self) -> TopologyChange
fn clone(&self) -> TopologyChange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TopologyChange
impl Debug for TopologyChange
Source§impl FromCursor for TopologyChange
impl FromCursor for TopologyChange
Source§fn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version,
) -> Result<TopologyChange>
fn from_cursor( cursor: &mut Cursor<&[u8]>, version: Version, ) -> Result<TopologyChange>
Tries to parse Self from a cursor of bytes.
Source§impl Hash for TopologyChange
impl Hash for TopologyChange
Source§impl Ord for TopologyChange
impl Ord for TopologyChange
Source§fn cmp(&self, other: &TopologyChange) -> Ordering
fn cmp(&self, other: &TopologyChange) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TopologyChange
impl PartialEq for TopologyChange
Source§impl PartialOrd for TopologyChange
impl PartialOrd for TopologyChange
Source§impl Serialize for TopologyChange
impl Serialize for TopologyChange
impl Copy for TopologyChange
impl Eq for TopologyChange
impl StructuralPartialEq for TopologyChange
Auto Trait Implementations§
impl Freeze for TopologyChange
impl RefUnwindSafe for TopologyChange
impl Send for TopologyChange
impl Sync for TopologyChange
impl Unpin for TopologyChange
impl UnwindSafe for TopologyChange
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> 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