Enum cassandra_protocol::frame::events::ServerEvent
source · #[non_exhaustive]
pub enum ServerEvent {
TopologyChange(TopologyChange),
StatusChange(StatusChange),
SchemaChange(SchemaChange),
}
Expand description
Full server event that contains all details about a concrete change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TopologyChange(TopologyChange)
Events related to change in the cluster topology
StatusChange(StatusChange)
Events related to change of node status.
SchemaChange(SchemaChange)
Events related to schema change.
Trait Implementations§
source§impl Clone for ServerEvent
impl Clone for ServerEvent
source§fn clone(&self) -> ServerEvent
fn clone(&self) -> ServerEvent
Returns a copy 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 ServerEvent
impl Debug for ServerEvent
source§impl<'a> From<&'a ServerEvent> for SimpleServerEvent
impl<'a> From<&'a ServerEvent> for SimpleServerEvent
source§fn from(event: &'a ServerEvent) -> SimpleServerEvent
fn from(event: &'a ServerEvent) -> SimpleServerEvent
Converts to this type from the input type.
source§impl From<ServerEvent> for SimpleServerEvent
impl From<ServerEvent> for SimpleServerEvent
source§fn from(event: ServerEvent) -> SimpleServerEvent
fn from(event: ServerEvent) -> SimpleServerEvent
Converts to this type from the input type.
source§impl FromCursor for ServerEvent
impl FromCursor for ServerEvent
source§fn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version
) -> Result<ServerEvent>
fn from_cursor( cursor: &mut Cursor<&[u8]>, version: Version ) -> Result<ServerEvent>
Tries to parse Self from a cursor of bytes.
source§impl Hash for ServerEvent
impl Hash for ServerEvent
source§impl Ord for ServerEvent
impl Ord for ServerEvent
source§fn cmp(&self, other: &ServerEvent) -> Ordering
fn cmp(&self, other: &ServerEvent) -> 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<ServerEvent> for ServerEvent
impl PartialEq<ServerEvent> for ServerEvent
source§fn eq(&self, other: &ServerEvent) -> bool
fn eq(&self, other: &ServerEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<ServerEvent> for SimpleServerEvent
impl PartialEq<ServerEvent> for SimpleServerEvent
source§fn eq(&self, full_event: &ServerEvent) -> bool
fn eq(&self, full_event: &ServerEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<SimpleServerEvent> for ServerEvent
impl PartialEq<SimpleServerEvent> for ServerEvent
source§fn eq(&self, event: &SimpleServerEvent) -> bool
fn eq(&self, event: &SimpleServerEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ServerEvent> for ServerEvent
impl PartialOrd<ServerEvent> for ServerEvent
source§fn partial_cmp(&self, other: &ServerEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &ServerEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more