pub struct VersionHeader {
pub version: String,
}
Expand description
The header used to advertize daemon version.
This header gets written by the daemon to every stream as soon as it is opened, which allows the client to compare version strings for protocol negotiation (basically just deciding if the user ought to be warned about mismatched versions).
Fields§
§version: String
Trait Implementations§
Source§impl Debug for VersionHeader
impl Debug for VersionHeader
Source§impl<'de> Deserialize<'de> for VersionHeader
impl<'de> Deserialize<'de> for VersionHeader
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
Auto Trait Implementations§
impl Freeze for VersionHeader
impl RefUnwindSafe for VersionHeader
impl Send for VersionHeader
impl Sync for VersionHeader
impl Unpin for VersionHeader
impl UnwindSafe for VersionHeader
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