Struct Hello
pub struct Hello {
pub protocol_version: ProtocolVersion,
pub role: Role,
pub pid: u32,
pub capabilities: Vec<String>,
pub max_frame_len: u32,
}Expand description
First message each endpoint sends immediately on connect.
Fields§
§protocol_version: ProtocolVersionProtocol version this endpoint speaks.
role: RoleWhether the sender is the daemon or a client.
pid: u32Process id of the sender.
capabilities: Vec<String>Capability flags this endpoint advertises: open-ended, opaque
namespaced strings (e.g. "paste") that peers intersect. Role-neutral,
since both the daemon and a client send Hello.
max_frame_len: u32Largest CBOR frame body, in bytes, this endpoint is willing to receive.
Peers take the minimum of the two advertised values as the send limit,
so neither sends a frame the other would reject. Defaults to
DEFAULT_MAX_FRAME_LEN for a peer that predates the field.
Trait Implementations§
§impl<'de> Deserialize<'de> for Hello
impl<'de> Deserialize<'de> for Hello
§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 Hello
impl StructuralPartialEq for Hello
Auto Trait Implementations§
impl Freeze for Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnsafeUnpin for Hello
impl UnwindSafe for Hello
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