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 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 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 for ServerRole
impl PartialEq for ServerRole
Source§impl PartialOrd for ServerRole
impl PartialOrd for ServerRole
impl Copy for ServerRole
impl Eq for ServerRole
impl StructuralPartialEq for ServerRole
Auto Trait Implementations§
impl Freeze for ServerRole
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