pub enum StreamStatus {
New,
NewResolve,
Remap,
SentConnect,
SentResolve,
Succeeded,
Failed,
Detached,
ControllerWait,
Closed,
}Expand description
Status of a stream going through Tor.
Streams represent individual TCP connections tunneled through circuits.
§Example
use stem_rs::StreamStatus;
let status = StreamStatus::Succeeded;
println!("Stream status: {}", status); // Prints "SUCCEEDED"Variants§
New
Request for a new connection.
NewResolve
Request to resolve an address.
Remap
Address is being re-mapped to another.
SentConnect
Sent a connect cell along a circuit.
SentResolve
Sent a resolve cell along a circuit.
Succeeded
Stream has been established.
Failed
Stream is detached and won’t be re-established.
Detached
Stream is detached but might be re-established.
ControllerWait
Awaiting a controller’s ATTACHSTREAM request.
Closed
Stream has closed.
Trait Implementations§
Source§impl Clone for StreamStatus
impl Clone for StreamStatus
Source§fn clone(&self) -> StreamStatus
fn clone(&self) -> StreamStatus
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 StreamStatus
impl Debug for StreamStatus
Source§impl Display for StreamStatus
impl Display for StreamStatus
Source§impl Hash for StreamStatus
impl Hash for StreamStatus
Source§impl PartialEq for StreamStatus
impl PartialEq for StreamStatus
impl Copy for StreamStatus
impl Eq for StreamStatus
impl StructuralPartialEq for StreamStatus
Auto Trait Implementations§
impl Freeze for StreamStatus
impl RefUnwindSafe for StreamStatus
impl Send for StreamStatus
impl Sync for StreamStatus
impl Unpin for StreamStatus
impl UnwindSafe for StreamStatus
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