pub struct Init {
pub version: u32,
pub extensions: BTreeMap<Bytes, Bytes>,
}Expand description
Fields§
§version: u32Maximal version of the protocol supported by the client
extensions: BTreeMap<Bytes, Bytes>List of extensions supported by the client
Implementations MUST silently ignore any extensions whose name they do not recognize.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Init
impl<'de> Deserialize<'de> for Init
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Init
impl StructuralPartialEq for Init
Auto Trait Implementations§
impl Freeze for Init
impl RefUnwindSafe for Init
impl Send for Init
impl Sync for Init
impl Unpin for Init
impl UnwindSafe for Init
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