Enum ratchet_rs::CloseCause
source · [−]pub enum CloseCause {
Stopped,
Error,
}
Expand description
The channel is closed
Variants
Stopped
The channel closed nominally. This is not an error and instead indicates a clean closure of the channel by either ourselves or the peer.
Error
This is only produced when a user attempts to reuse a closed channel and instead indicates a bug in your code.
Trait Implementations
sourceimpl Clone for CloseCause
impl Clone for CloseCause
sourcefn clone(&self) -> CloseCause
fn clone(&self) -> CloseCause
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 CloseCause
impl Debug for CloseCause
sourceimpl Display for CloseCause
impl Display for CloseCause
sourceimpl Error for CloseCause
impl Error for CloseCause
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<CloseCause> for CloseCause
impl PartialEq<CloseCause> for CloseCause
impl Copy for CloseCause
impl StructuralPartialEq for CloseCause
Auto Trait Implementations
impl RefUnwindSafe for CloseCause
impl Send for CloseCause
impl Sync for CloseCause
impl Unpin for CloseCause
impl UnwindSafe for CloseCause
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