pub struct Hello {
pub versions: Vec<u16>,
pub capabilities: Capabilities,
pub max_frame: u32,
pub agent: String,
pub token: Option<String>,
}Expand description
The agent’s first message on every connection.
On the wire: {0: 0, 1: versions, 2: capabilities, 3: max_frame, 4: agent, ?5: token}.
Fields§
§versions: Vec<u16>Protocol versions the agent speaks.
capabilities: Capabilities§max_frame: u32The largest frame payload the agent accepts, in bytes.
agent: StringAgent name and version, such as mobile-agent-android 0.1.0.
token: Option<String>The per-launch token the host passed when it started the agent.
Trait Implementations§
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