pub struct Unrecognized { /* private fields */ }Expand description
A relay message that we didn’t recognize
NOTE: Clients should generally reject these.
Implementations
Trait Implementations
sourceimpl Body for Unrecognized
impl Body for Unrecognized
sourcefn into_message(self) -> RelayMsg
fn into_message(self) -> RelayMsg
Convert this type into a RelayMsg, wrapped appropriate.
sourcefn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>
fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>
Decode a relay cell body from a provided reader.
sourcefn encode_onto(self, w: &mut Vec<u8>) -> EncodeResult<()>
fn encode_onto(self, w: &mut Vec<u8>) -> EncodeResult<()>
Encode the body of this cell into the end of a vec.
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 moreAuto 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