pub enum ServerID {
Name(String),
Socket(SocketAddr),
}
Expand description
Unique ID and address for a server in a Memcached cluster for indexing responses or errors and establishing connections.
Variants§
Name(String)
Socket(SocketAddr)
Trait Implementations§
Source§impl From<SocketAddr> for ServerID
impl From<SocketAddr> for ServerID
Source§fn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Converts to this type from the input type.
Source§impl Ord for ServerID
impl Ord for ServerID
Source§impl PartialOrd for ServerID
impl PartialOrd for ServerID
impl Eq for ServerID
impl StructuralPartialEq for ServerID
Auto Trait Implementations§
impl Freeze for ServerID
impl RefUnwindSafe for ServerID
impl Send for ServerID
impl Sync for ServerID
impl Unpin for ServerID
impl UnwindSafe for ServerID
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