pub struct EndReason(/* private fields */);
Expand description
A declared reason for closing a stream
Implementations§
source§impl EndReason
impl EndReason
sourcepub const MISC: EndReason = _
pub const MISC: EndReason = _
Closing a stream because of an unspecified reason.
This is the only END reason that clients send.
sourcepub const RESOLVEFAILED: EndReason = _
pub const RESOLVEFAILED: EndReason = _
Couldn’t look up hostname.
sourcepub const CONNECTREFUSED: EndReason = _
pub const CONNECTREFUSED: EndReason = _
Remote host refused connection.
sourcepub const EXITPOLICY: EndReason = _
pub const EXITPOLICY: EndReason = _
Closing a stream because of an exit-policy violation.
sourcepub const HIBERNATING: EndReason = _
pub const HIBERNATING: EndReason = _
OR is entering hibernation and not handling requests
sourcepub const RESOURCELIMIT: EndReason = _
pub const RESOURCELIMIT: EndReason = _
Ran out of resources to fulfill requests
sourcepub const TORPROTOCOL: EndReason = _
pub const TORPROTOCOL: EndReason = _
Tor protocol violation
sourcepub const NOTDIRECTORY: EndReason = _
pub const NOTDIRECTORY: EndReason = _
BEGIN_DIR cell at a non-directory-cache.
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 PartialEq for EndReason
impl PartialEq for EndReason
impl Copy for EndReason
impl Eq for EndReason
impl StructuralPartialEq for EndReason
Auto Trait Implementations§
impl Freeze for EndReason
impl RefUnwindSafe for EndReason
impl Send for EndReason
impl Sync for EndReason
impl Unpin for EndReason
impl UnwindSafe for EndReason
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
§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