pub enum OrStatus {
New,
Launched,
Connected,
Failed,
Closed,
}Expand description
Status of an OR (Onion Router) connection.
OR connections are the TLS connections between Tor relays.
§Example
use stem_rs::OrStatus;
let status = OrStatus::Connected;
println!("OR status: {}", status); // Prints "CONNECTED"Variants§
New
Received OR connection, starting server-side handshake.
Launched
Launched outbound OR connection, starting client-side handshake.
Connected
OR connection has been established.
Failed
Attempt to establish OR connection failed.
Closed
OR connection has been closed.
Trait Implementations§
impl Copy for OrStatus
impl Eq for OrStatus
impl StructuralPartialEq for OrStatus
Auto Trait Implementations§
impl Freeze for OrStatus
impl RefUnwindSafe for OrStatus
impl Send for OrStatus
impl Sync for OrStatus
impl Unpin for OrStatus
impl UnwindSafe for OrStatus
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