pub struct WireServerInfo {
pub version: String,
}Expand description
One-shot server-pushed handshake describing the host binary the
client is talking to. Sent as the very first response on every
StartStream so the client can verify it’s connected to a
compatible version (the host crate’s version is workspace-pinned
to the same number as the client binary). Kept as a struct so
future fields (build sha, supported features, …) don’t require a
wire-protocol break.
Fields§
§version: StringCARGO_PKG_VERSION of the tracing-console-host crate on the
server. Use it to spot mismatched client/server pairs.
Trait Implementations§
Source§impl Clone for WireServerInfo
impl Clone for WireServerInfo
Source§fn clone(&self) -> WireServerInfo
fn clone(&self) -> WireServerInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WireServerInfo
impl Debug for WireServerInfo
Source§impl<'de> Deserialize<'de> for WireServerInfo
impl<'de> Deserialize<'de> for WireServerInfo
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
Source§impl PartialEq for WireServerInfo
impl PartialEq for WireServerInfo
Source§fn eq(&self, other: &WireServerInfo) -> bool
fn eq(&self, other: &WireServerInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WireServerInfo
impl Serialize for WireServerInfo
impl Eq for WireServerInfo
impl StructuralPartialEq for WireServerInfo
Auto Trait Implementations§
impl Freeze for WireServerInfo
impl RefUnwindSafe for WireServerInfo
impl Send for WireServerInfo
impl Sync for WireServerInfo
impl Unpin for WireServerInfo
impl UnsafeUnpin for WireServerInfo
impl UnwindSafe for WireServerInfo
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