pub struct Destroy { /* private fields */ }
Expand description
The Destroy message tears down a circuit.
On receiving a Destroy message, a Tor implementation should tear down the associated circuit, and pass the destroy message down the circuit to later/earlier hops on the circuit (if any).
Implementations
sourceimpl Destroy
impl Destroy
sourcepub fn new(reason: DestroyReason) -> Self
pub fn new(reason: DestroyReason) -> Self
Create a new destroy cell.
sourcepub fn reason(&self) -> DestroyReason
pub fn reason(&self) -> DestroyReason
Return the provided reason for destroying the circuit.
Trait Implementations
sourceimpl Body for Destroy
impl Body for Destroy
sourcefn into_message(self) -> ChanMsg
fn into_message(self) -> ChanMsg
Convert this type into a ChanMsg, wrapped as appropriate.
Auto Trait Implementations
impl RefUnwindSafe for Destroy
impl Send for Destroy
impl Sync for Destroy
impl Unpin for Destroy
impl UnwindSafe for Destroy
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more