pub struct AgentReady {
pub wire_format: AgentWireFormat,
pub negotiated_version: u8,
pub agent: Ready,
/* private fields */
}Expand description
Immutable metadata captured once during relay setup.
Fields§
§wire_format: AgentWireFormatRelay wire form selected during the prologue.
negotiated_version: u8Smaller of host and peer generations, used for known-operation gates.
agent: ReadyDecoded original core.ready payload.
Implementations§
Source§impl AgentReady
impl AgentReady
Sourcepub fn ready_bytes(&self) -> &[u8] ⓘ
pub fn ready_bytes(&self) -> &[u8] ⓘ
Exact original ready envelope, including unknown fields.
Sourcepub fn supports(&self, message_type: MessageType) -> bool
pub fn supports(&self, message_type: MessageType) -> bool
Whether the connected generation supports this known message.
Sourcepub fn agent_version(&self) -> &str
pub fn agent_version(&self) -> &str
Self-reported package version, empty on older agents lacking the field.
Sourcepub fn is_legacy_protocol(&self) -> bool
pub fn is_legacy_protocol(&self) -> bool
Whether the connection selected the supported pre-0.5 wire form.
Trait Implementations§
Source§impl Clone for AgentReady
impl Clone for AgentReady
Source§fn clone(&self) -> AgentReady
fn clone(&self) -> AgentReady
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 moreAuto Trait Implementations§
impl Freeze for AgentReady
impl RefUnwindSafe for AgentReady
impl Send for AgentReady
impl Sync for AgentReady
impl Unpin for AgentReady
impl UnsafeUnpin for AgentReady
impl UnwindSafe for AgentReady
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