pub struct JsonReply { /* private fields */ }Expand description
One actual response line, retaining unknown fields and lossless numbers.
Implementations§
Source§impl JsonReply
impl JsonReply
Sourcepub fn parse(raw: Vec<u8>) -> ControlClientResult<Self>
pub fn parse(raw: Vec<u8>) -> ControlClientResult<Self>
Decode a complete original line (or a nonempty EOF-delimited reply).
Sourcepub fn discovery_mode(&self) -> ControlClientResult<ControlMode>
pub fn discovery_mode(&self) -> ControlClientResult<ControlMode>
Validate an affirmative capabilities reply and select a supported format. No error strings or unexpected EOFs are interpreted as legacy support.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonReply
impl RefUnwindSafe for JsonReply
impl Send for JsonReply
impl Sync for JsonReply
impl Unpin for JsonReply
impl UnsafeUnpin for JsonReply
impl UnwindSafe for JsonReply
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