pub struct EstIntroExtDosParamType(/* private fields */);
Available on crate feature
hs
only.Expand description
The recognized parameter types in an establish intro DoS extension.
See https://spec.torproject.org/rend-spec/introduction-protocol.html#EST_INTRO_DOS_EXT
Implementations§
source§impl EstIntroExtDosParamType
impl EstIntroExtDosParamType
sourcepub const DOS_INTRODUCE2_RATE_PER_SEC: EstIntroExtDosParamType = _
pub const DOS_INTRODUCE2_RATE_PER_SEC: EstIntroExtDosParamType = _
The rate per second of INTRODUCE2 cell relayed to the service.
sourcepub const DOS_INTRODUCE2_BURST_PER_SEC: EstIntroExtDosParamType = _
pub const DOS_INTRODUCE2_BURST_PER_SEC: EstIntroExtDosParamType = _
The burst per second of INTRODUCE2 cell relayed to the service
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 EstIntroExtDosParamType
impl Clone for EstIntroExtDosParamType
source§fn clone(&self) -> EstIntroExtDosParamType
fn clone(&self) -> EstIntroExtDosParamType
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 EstIntroExtDosParamType
impl Debug for EstIntroExtDosParamType
source§impl Display for EstIntroExtDosParamType
impl Display for EstIntroExtDosParamType
source§impl From<EstIntroExtDosParamType> for u8
impl From<EstIntroExtDosParamType> for u8
source§fn from(val: EstIntroExtDosParamType) -> u8
fn from(val: EstIntroExtDosParamType) -> u8
Converts to this type from the input type.
source§impl From<u8> for EstIntroExtDosParamType
impl From<u8> for EstIntroExtDosParamType
source§fn from(num: u8) -> EstIntroExtDosParamType
fn from(num: u8) -> EstIntroExtDosParamType
Converts to this type from the input type.
source§impl PartialEq for EstIntroExtDosParamType
impl PartialEq for EstIntroExtDosParamType
source§fn eq(&self, other: &EstIntroExtDosParamType) -> bool
fn eq(&self, other: &EstIntroExtDosParamType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EstIntroExtDosParamType
impl Eq for EstIntroExtDosParamType
impl StructuralPartialEq for EstIntroExtDosParamType
Auto Trait Implementations§
impl Freeze for EstIntroExtDosParamType
impl RefUnwindSafe for EstIntroExtDosParamType
impl Send for EstIntroExtDosParamType
impl Sync for EstIntroExtDosParamType
impl Unpin for EstIntroExtDosParamType
impl UnwindSafe for EstIntroExtDosParamType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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