pub struct DestroyReason(_);
Expand description
Declared reason for ending a circuit.
Implementations
sourceimpl DestroyReason
impl DestroyReason
sourcepub const NONE: DestroyReason = DestroyReason(0)
pub const NONE: DestroyReason = DestroyReason(0)
No reason given.
(This is the only reason that clients send.
sourcepub const PROTOCOL: DestroyReason = DestroyReason(1)
pub const PROTOCOL: DestroyReason = DestroyReason(1)
Protocol violation
sourcepub const INTERNAL: DestroyReason = DestroyReason(2)
pub const INTERNAL: DestroyReason = DestroyReason(2)
Internal error.
sourcepub const REQUESTED: DestroyReason = DestroyReason(3)
pub const REQUESTED: DestroyReason = DestroyReason(3)
Client sent a TRUNCATE command.
sourcepub const HIBERNATING: DestroyReason = DestroyReason(4)
pub const HIBERNATING: DestroyReason = DestroyReason(4)
Relay is hibernating and not accepting requests
sourcepub const RESOURCELIMIT: DestroyReason = DestroyReason(5)
pub const RESOURCELIMIT: DestroyReason = DestroyReason(5)
Ran out of memory, sockets, or circuit IDs
sourcepub const CONNECTFAILED: DestroyReason = DestroyReason(6)
pub const CONNECTFAILED: DestroyReason = DestroyReason(6)
Couldn’t connect to relay.
sourcepub const OR_IDENTITY: DestroyReason = DestroyReason(7)
pub const OR_IDENTITY: DestroyReason = DestroyReason(7)
Connected to a relay, but its OR identity wasn’t as requested.
sourcepub const CHANNEL_CLOSED: DestroyReason = DestroyReason(8)
pub const CHANNEL_CLOSED: DestroyReason = DestroyReason(8)
One of the OR channels carrying this circuit died.
sourcepub const FINISHED: DestroyReason = DestroyReason(9)
pub const FINISHED: DestroyReason = DestroyReason(9)
Circuit expired for being too dirty or old
sourcepub const TIMEOUT: DestroyReason = DestroyReason(10)
pub const TIMEOUT: DestroyReason = DestroyReason(10)
Circuit construction took too long
sourcepub const DESTROYED: DestroyReason = DestroyReason(11)
pub const DESTROYED: DestroyReason = DestroyReason(11)
Circuit was destroyed w/o client truncate (?)
sourcepub const NOSUCHSERVICE: DestroyReason = DestroyReason(12)
pub const NOSUCHSERVICE: DestroyReason = DestroyReason(12)
Request for unknown onion service
sourcepub fn is_recognized(self) -> bool
pub fn is_recognized(self) -> bool
Return true if this value is one that we recognize.
sourceimpl DestroyReason
impl DestroyReason
Trait Implementations
sourceimpl Clone for DestroyReason
impl Clone for DestroyReason
sourcefn clone(&self) -> DestroyReason
fn clone(&self) -> DestroyReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DestroyReason
impl Debug for DestroyReason
sourceimpl Display for DestroyReason
impl Display for DestroyReason
sourceimpl From<DestroyReason> for u8
impl From<DestroyReason> for u8
sourcefn from(val: DestroyReason) -> u8
fn from(val: DestroyReason) -> u8
Converts to this type from the input type.
sourceimpl From<u8> for DestroyReason
impl From<u8> for DestroyReason
sourcefn from(num: u8) -> DestroyReason
fn from(num: u8) -> DestroyReason
Converts to this type from the input type.
sourceimpl PartialEq<DestroyReason> for DestroyReason
impl PartialEq<DestroyReason> for DestroyReason
sourcefn eq(&self, other: &DestroyReason) -> bool
fn eq(&self, other: &DestroyReason) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DestroyReason) -> bool
fn ne(&self, other: &DestroyReason) -> bool
This method tests for !=
.
impl Copy for DestroyReason
impl Eq for DestroyReason
impl StructuralEq for DestroyReason
impl StructuralPartialEq for DestroyReason
Auto Trait Implementations
impl RefUnwindSafe for DestroyReason
impl Send for DestroyReason
impl Sync for DestroyReason
impl Unpin for DestroyReason
impl UnwindSafe for DestroyReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more