Struct tor_cell::relaycell::extend::NtorV3ExtensionType
source · pub struct NtorV3ExtensionType(/* private fields */);
Expand description
A type of ntor v3 extension data (EXT_FIELD_TYPE
).
Implementations§
source§impl NtorV3ExtensionType
impl NtorV3ExtensionType
sourcepub const CC_REQUEST: NtorV3ExtensionType = _
pub const CC_REQUEST: NtorV3ExtensionType = _
Request congestion control be enabled for a circuit.
sourcepub const CC_RESPONSE: NtorV3ExtensionType = _
pub const CC_RESPONSE: NtorV3ExtensionType = _
Acknowledge a congestion control request.
sourcepub fn is_recognized(self) -> bool
pub fn is_recognized(self) -> bool
Return true if this value is one that we recognize.
Trait Implementations§
source§impl Clone for NtorV3ExtensionType
impl Clone for NtorV3ExtensionType
source§fn clone(&self) -> NtorV3ExtensionType
fn clone(&self) -> NtorV3ExtensionType
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 NtorV3ExtensionType
impl Debug for NtorV3ExtensionType
source§impl Display for NtorV3ExtensionType
impl Display for NtorV3ExtensionType
source§impl From<NtorV3ExtensionType> for u8
impl From<NtorV3ExtensionType> for u8
source§fn from(val: NtorV3ExtensionType) -> u8
fn from(val: NtorV3ExtensionType) -> u8
Converts to this type from the input type.
source§impl From<u8> for NtorV3ExtensionType
impl From<u8> for NtorV3ExtensionType
source§fn from(num: u8) -> NtorV3ExtensionType
fn from(num: u8) -> NtorV3ExtensionType
Converts to this type from the input type.
source§impl PartialEq for NtorV3ExtensionType
impl PartialEq for NtorV3ExtensionType
impl Copy for NtorV3ExtensionType
impl Eq for NtorV3ExtensionType
impl StructuralPartialEq for NtorV3ExtensionType
Auto Trait Implementations§
impl Freeze for NtorV3ExtensionType
impl RefUnwindSafe for NtorV3ExtensionType
impl Send for NtorV3ExtensionType
impl Sync for NtorV3ExtensionType
impl Unpin for NtorV3ExtensionType
impl UnwindSafe for NtorV3ExtensionType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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