pub struct ServerVersion {
pub version: u32,
pub extensions: Extensions,
}
Fields§
§version: u32
§extensions: Extensions
Implementations§
Source§impl ServerVersion
impl ServerVersion
Sourcepub fn deserialize<'de, It>(de: &mut Deserializer<'de, It>) -> Result<Self>
pub fn deserialize<'de, It>(de: &mut Deserializer<'de, It>) -> Result<Self>
bytes
- should not include the initial 4-byte which server as the length of the whole packet.
Trait Implementations§
Source§impl Clone for ServerVersion
impl Clone for ServerVersion
Source§fn clone(&self) -> ServerVersion
fn clone(&self) -> ServerVersion
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 ServerVersion
impl Debug for ServerVersion
impl Copy for ServerVersion
Auto Trait Implementations§
impl Freeze for ServerVersion
impl RefUnwindSafe for ServerVersion
impl Send for ServerVersion
impl Sync for ServerVersion
impl Unpin for ServerVersion
impl UnwindSafe for ServerVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)