#[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 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 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§impl PartialEq<SimpleServerEvent> for ServerEvent
impl PartialEq<SimpleServerEvent> for ServerEvent
Source§impl PartialEq for SimpleServerEvent
impl PartialEq for SimpleServerEvent
Source§impl PartialOrd for SimpleServerEvent
impl PartialOrd for SimpleServerEvent
Source§impl TryFrom<&str> for SimpleServerEvent
impl TryFrom<&str> for SimpleServerEvent
impl Copy for SimpleServerEvent
impl Eq for SimpleServerEvent
impl StructuralPartialEq for SimpleServerEvent
Auto Trait Implementations§
impl Freeze for SimpleServerEvent
impl RefUnwindSafe for SimpleServerEvent
impl Send for SimpleServerEvent
impl Sync for SimpleServerEvent
impl Unpin for SimpleServerEvent
impl UnwindSafe for SimpleServerEvent
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