Enum redis_module::server_events::ServerRole
source · pub enum ServerRole {
Primary,
Replica,
}
Variants§
Trait Implementations§
source§impl Clone for ServerRole
impl Clone for ServerRole
source§fn clone(&self) -> ServerRole
fn clone(&self) -> ServerRole
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 ServerRole
impl Debug for ServerRole
source§impl Ord for ServerRole
impl Ord for ServerRole
source§fn cmp(&self, other: &ServerRole) -> Ordering
fn cmp(&self, other: &ServerRole) -> 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<ServerRole> for ServerRole
impl PartialEq<ServerRole> for ServerRole
source§fn eq(&self, other: &ServerRole) -> bool
fn eq(&self, other: &ServerRole) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ServerRole> for ServerRole
impl PartialOrd<ServerRole> for ServerRole
source§fn partial_cmp(&self, other: &ServerRole) -> Option<Ordering>
fn partial_cmp(&self, other: &ServerRole) -> 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 moreimpl Copy for ServerRole
impl Eq for ServerRole
impl StructuralEq for ServerRole
impl StructuralPartialEq for ServerRole
Auto Trait Implementations§
impl RefUnwindSafe for ServerRole
impl Send for ServerRole
impl Sync for ServerRole
impl Unpin for ServerRole
impl UnwindSafe for ServerRole
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