pub enum DirResponse {
Ok,
NotEnoughSigs,
Unavailable,
NotFound,
NotModified,
Busy,
}Expand description
Response status for directory requests.
These statuses indicate the outcome of network status requests made to directory servers.
§Variants
| Status | Description |
|---|---|
Ok | Request completed successfully |
NotEnoughSigs | Network status wasn’t signed by enough authorities |
Unavailable | Requested network status was unavailable |
NotFound | Requested network status was not found |
NotModified | Network status unmodified since If-Modified-Since time |
Busy | Directory server was too busy to respond |
§Example
use stem_rs::descriptor::extra_info::DirResponse;
use std::str::FromStr;
let status = DirResponse::from_str("ok").unwrap();
assert_eq!(status, DirResponse::Ok);Variants§
Ok
Request completed successfully.
NotEnoughSigs
Network status wasn’t signed by enough authorities.
Requested network status was unavailable.
NotFound
Requested network status was not found.
NotModified
Network status unmodified since If-Modified-Since time.
Busy
Directory server was too busy to respond.
Trait Implementations§
Source§impl Clone for DirResponse
impl Clone for DirResponse
Source§fn clone(&self) -> DirResponse
fn clone(&self) -> DirResponse
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 DirResponse
impl Debug for DirResponse
Source§impl FromStr for DirResponse
impl FromStr for DirResponse
Source§impl Hash for DirResponse
impl Hash for DirResponse
Source§impl PartialEq for DirResponse
impl PartialEq for DirResponse
impl Eq for DirResponse
impl StructuralPartialEq for DirResponse
Auto Trait Implementations§
impl Freeze for DirResponse
impl RefUnwindSafe for DirResponse
impl Send for DirResponse
impl Sync for DirResponse
impl Unpin for DirResponse
impl UnwindSafe for DirResponse
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