Enum cassandra_protocol::frame::events::ServerEvent
source · [−]pub enum ServerEvent {
TopologyChange(TopologyChange),
StatusChange(StatusChange),
SchemaChange(SchemaChange),
}
Expand description
Full server event that contains all details about a concrete change.
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
sourceimpl Clone for ServerEvent
impl Clone for ServerEvent
sourcefn clone(&self) -> ServerEvent
fn clone(&self) -> ServerEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ServerEvent
impl Debug for ServerEvent
sourceimpl<'a> From<&'a ServerEvent> for SimpleServerEvent
impl<'a> From<&'a ServerEvent> for SimpleServerEvent
sourcefn from(event: &'a ServerEvent) -> SimpleServerEvent
fn from(event: &'a ServerEvent) -> SimpleServerEvent
Converts to this type from the input type.
sourceimpl From<ServerEvent> for SimpleServerEvent
impl From<ServerEvent> for SimpleServerEvent
sourcefn from(event: ServerEvent) -> SimpleServerEvent
fn from(event: ServerEvent) -> SimpleServerEvent
Converts to this type from the input type.
sourceimpl FromCursor for ServerEvent
impl FromCursor for ServerEvent
sourcefn 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.
sourceimpl Hash for ServerEvent
impl Hash for ServerEvent
sourceimpl Ord for ServerEvent
impl Ord for ServerEvent
sourcefn cmp(&self, other: &ServerEvent) -> Ordering
fn cmp(&self, other: &ServerEvent) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ServerEvent> for ServerEvent
impl PartialEq<ServerEvent> for ServerEvent
sourcefn eq(&self, other: &ServerEvent) -> bool
fn eq(&self, other: &ServerEvent) -> bool
sourceimpl PartialEq<ServerEvent> for SimpleServerEvent
impl PartialEq<ServerEvent> for SimpleServerEvent
sourcefn eq(&self, full_event: &ServerEvent) -> bool
fn eq(&self, full_event: &ServerEvent) -> bool
sourceimpl PartialEq<SimpleServerEvent> for ServerEvent
impl PartialEq<SimpleServerEvent> for ServerEvent
sourcefn eq(&self, event: &SimpleServerEvent) -> bool
fn eq(&self, event: &SimpleServerEvent) -> bool
sourceimpl PartialOrd<ServerEvent> for ServerEvent
impl PartialOrd<ServerEvent> for ServerEvent
sourcefn partial_cmp(&self, other: &ServerEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &ServerEvent) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Serialize for ServerEvent
impl Serialize for ServerEvent
impl Eq for ServerEvent
impl StructuralEq for ServerEvent
impl StructuralPartialEq for ServerEvent
Auto Trait Implementations
impl RefUnwindSafe for ServerEvent
impl Send for ServerEvent
impl Sync for ServerEvent
impl Unpin for ServerEvent
impl UnwindSafe for ServerEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more