pub struct Unrecognized { /* private fields */ }Expand description
Holds any message whose command we don’t recognize.
Well-behaved Tor implementations are required to ignore commands like this.
TODO: I believe that this is not a risky case of Postel’s law, since it is only for channels, but we should be careful here.
Implementations
Trait Implementations
sourceimpl Body for Unrecognized
impl Body for Unrecognized
sourcefn into_message(self) -> ChanMsg
fn into_message(self) -> ChanMsg
Convert this type into a ChanMsg, wrapped as appropriate.
sourcefn write_body_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
fn write_body_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
Consume this message and encode its body onto
w. Read moresourceimpl Clone for Unrecognized
impl Clone for Unrecognized
sourcefn clone(&self) -> Unrecognized
fn clone(&self) -> Unrecognized
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for Unrecognized
impl Debug for Unrecognized
Auto Trait Implementations
impl RefUnwindSafe for Unrecognized
impl Send for Unrecognized
impl Sync for Unrecognized
impl Unpin for Unrecognized
impl UnwindSafe for Unrecognized
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more