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.
sourceimpl 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 more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more