Struct tor_cell::relaycell::RelayCellFieldsV0
source · #[non_exhaustive]pub struct RelayCellFieldsV0;
Expand description
Specifies fields for RelayCellFormat::V0
.
Trait Implementations§
source§impl RelayCellFields for RelayCellFieldsV0
impl RelayCellFields for RelayCellFieldsV0
source§const RECOGNIZED_RANGE: Range<usize> = _
const RECOGNIZED_RANGE: Range<usize> = _
The range containing the
recognized
field, within a relay cell’s body.source§const DIGEST_RANGE: Range<usize> = _
const DIGEST_RANGE: Range<usize> = _
The range containing the
digest
field, within a relay cell’s body.source§const EMPTY_DIGEST: &'static [u8] = _
const EMPTY_DIGEST: &'static [u8] = _
A static array of zeroes of the same size as this format uses for the
digest field. e.g. this enables updating a comparison-digest in one
hash-update method call, instead of having to loop over
DIGEST_RANGE
.Auto Trait Implementations§
impl Freeze for RelayCellFieldsV0
impl RefUnwindSafe for RelayCellFieldsV0
impl Send for RelayCellFieldsV0
impl Sync for RelayCellFieldsV0
impl Unpin for RelayCellFieldsV0
impl UnwindSafe for RelayCellFieldsV0
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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