pub enum StatusType {
General,
Client,
Server,
}Expand description
Source of a status event.
§Example
use stem_rs::StatusType;
let status = StatusType::General;
println!("Status type: {}", status); // Prints "GENERAL"Variants§
General
General Tor activity, not specifically as a client or relay.
Client
Related to our activity as a Tor client.
Server
Related to our activity as a Tor relay.
Trait Implementations§
Source§impl Clone for StatusType
impl Clone for StatusType
Source§fn clone(&self) -> StatusType
fn clone(&self) -> StatusType
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 StatusType
impl Debug for StatusType
Source§impl Display for StatusType
impl Display for StatusType
Source§impl Hash for StatusType
impl Hash for StatusType
Source§impl PartialEq for StatusType
impl PartialEq for StatusType
impl Copy for StatusType
impl Eq for StatusType
impl StructuralPartialEq for StatusType
Auto Trait Implementations§
impl Freeze for StatusType
impl RefUnwindSafe for StatusType
impl Send for StatusType
impl Sync for StatusType
impl Unpin for StatusType
impl UnwindSafe for StatusType
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