Enum cassandra_protocol::frame::events::SimpleServerEvent
source · #[non_exhaustive]
pub enum SimpleServerEvent {
TopologyChange,
StatusChange,
SchemaChange,
}
Expand description
Simplified ServerEvent
that does not contain details
about a concrete change. It may be useful for subscription
when you need only string representation of an event.
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.
Implementations§
Trait Implementations§
source§impl Clone for SimpleServerEvent
impl Clone for SimpleServerEvent
source§fn clone(&self) -> SimpleServerEvent
fn clone(&self) -> SimpleServerEvent
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 SimpleServerEvent
impl Debug for SimpleServerEvent
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 Hash for SimpleServerEvent
impl Hash for SimpleServerEvent
source§impl Ord for SimpleServerEvent
impl Ord for SimpleServerEvent
source§fn cmp(&self, other: &SimpleServerEvent) -> Ordering
fn cmp(&self, other: &SimpleServerEvent) -> 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 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 PartialEq<SimpleServerEvent> for SimpleServerEvent
impl PartialEq<SimpleServerEvent> for SimpleServerEvent
source§fn eq(&self, other: &SimpleServerEvent) -> bool
fn eq(&self, other: &SimpleServerEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SimpleServerEvent> for SimpleServerEvent
impl PartialOrd<SimpleServerEvent> for SimpleServerEvent
source§fn partial_cmp(&self, other: &SimpleServerEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SimpleServerEvent) -> 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