pub enum OrClosureReason {
Done,
ConnectRefused,
Identity,
ConnectReset,
Timeout,
NoRoute,
IoError,
ResourceLimit,
Misc,
PtMissing,
}Expand description
Reason that an OR connection is being closed or failed.
§Example
use stem_rs::OrClosureReason;
let reason = OrClosureReason::Done;
println!("OR closure reason: {}", reason); // Prints "DONE"Variants§
Done
OR connection shut down cleanly.
ConnectRefused
Got ECONNREFUSED when connecting to the relay.
Identity
Identity of the relay wasn’t what we expected.
ConnectReset
Got ECONNRESET or similar error from relay.
Timeout
Got ETIMEOUT or similar error from relay.
NoRoute
Got ENOTCONN, ENETUNREACH, ENETDOWN, EHOSTUNREACH, or similar.
IoError
Got a different kind of I/O error from relay.
ResourceLimit
Relay has insufficient resources.
Misc
Connection refused for another reason.
PtMissing
No pluggable transport was available.
Trait Implementations§
Source§impl Clone for OrClosureReason
impl Clone for OrClosureReason
Source§fn clone(&self) -> OrClosureReason
fn clone(&self) -> OrClosureReason
Returns a duplicate 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 OrClosureReason
impl Debug for OrClosureReason
Source§impl Display for OrClosureReason
impl Display for OrClosureReason
Source§impl Hash for OrClosureReason
impl Hash for OrClosureReason
Source§impl PartialEq for OrClosureReason
impl PartialEq for OrClosureReason
impl Copy for OrClosureReason
impl Eq for OrClosureReason
impl StructuralPartialEq for OrClosureReason
Auto Trait Implementations§
impl Freeze for OrClosureReason
impl RefUnwindSafe for OrClosureReason
impl Send for OrClosureReason
impl Sync for OrClosureReason
impl Unpin for OrClosureReason
impl UnwindSafe for OrClosureReason
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