pub struct ServerInfo {
pub name: String,
pub version_major: u64,
pub version_minor: u64,
pub version_patch: u64,
pub revision: u64,
pub timezone: String,
pub display_name: String,
}Expand description
Server information received during handshake
Fields§
§name: StringServer application name.
version_major: u64Server major version number.
version_minor: u64Server minor version number.
version_patch: u64Server patch version number.
revision: u64Server protocol revision number.
timezone: StringServer timezone (e.g. “UTC”).
display_name: StringServer display name.
Implementations§
Trait Implementations§
Source§impl Clone for ServerInfo
impl Clone for ServerInfo
Source§fn clone(&self) -> ServerInfo
fn clone(&self) -> ServerInfo
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 ServerInfo
impl Debug for ServerInfo
Source§impl Default for ServerInfo
impl Default for ServerInfo
Source§fn default() -> ServerInfo
fn default() -> ServerInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnwindSafe for ServerInfo
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