pub struct ClusterInfo {
pub name: String,
pub ip: String,
pub port: u16,
pub max_connections: u32,
}
Fields§
§name: String
§ip: String
§port: u16
§max_connections: u32
Trait Implementations§
Source§impl Clone for ClusterInfo
impl Clone for ClusterInfo
Source§fn clone(&self) -> ClusterInfo
fn clone(&self) -> ClusterInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClusterInfo
impl Debug for ClusterInfo
Source§impl From<ClusterInfo> for Connection
impl From<ClusterInfo> for Connection
Source§fn from(info: ClusterInfo) -> Self
fn from(info: ClusterInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClusterInfo
impl RefUnwindSafe for ClusterInfo
impl Send for ClusterInfo
impl Sync for ClusterInfo
impl Unpin for ClusterInfo
impl UnwindSafe for ClusterInfo
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