Struct tor_cell::chancell::msg::RelayEarly
source · pub struct RelayEarly(/* private fields */);
Expand description
A Relay cell that is allowed to contain a CREATE message.
Only a limited number of these may be sent on each circuit.
Implementations§
source§impl RelayEarly
impl RelayEarly
sourcepub fn into_relay_body(self) -> BoxedCellBody
pub fn into_relay_body(self) -> BoxedCellBody
Consume this RelayEarly message and return a BoxedCellBody for encryption/decryption.
Trait Implementations§
source§impl Body for RelayEarly
impl Body for RelayEarly
source§fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
Consume this message and encode its body onto
w
. Read moresource§fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>
fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>
Decode a channel cell body from a provided reader.
source§impl ChanMsg for RelayEarly
impl ChanMsg for RelayEarly
source§fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
Write the body of this message (not including length or command).
source§impl Clone for RelayEarly
impl Clone for RelayEarly
source§fn clone(&self) -> RelayEarly
fn clone(&self) -> RelayEarly
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RelayEarly
impl Debug for RelayEarly
source§impl Deref for RelayEarly
impl Deref for RelayEarly
source§impl From<Relay> for RelayEarly
impl From<Relay> for RelayEarly
source§fn from(original: Relay) -> RelayEarly
fn from(original: Relay) -> RelayEarly
Converts to this type from the input type.
source§impl From<RelayEarly> for AnyChanMsg
impl From<RelayEarly> for AnyChanMsg
source§fn from(m: RelayEarly) -> AnyChanMsg
fn from(m: RelayEarly) -> AnyChanMsg
Converts to this type from the input type.
source§impl From<RelayEarly> for Relay
impl From<RelayEarly> for Relay
source§fn from(original: RelayEarly) -> Self
fn from(original: RelayEarly) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RelayEarly
impl RefUnwindSafe for RelayEarly
impl Send for RelayEarly
impl Sync for RelayEarly
impl Unpin for RelayEarly
impl UnwindSafe for RelayEarly
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more