pub struct Config { /* private fields */ }
Implementations§
Source§impl Config
impl Config
pub fn new(args: Args) -> Self
pub fn device_name(&self) -> &String
pub fn original_device_subname(&self) -> &String
pub fn try_new_device_subname(&self) -> String
pub fn secret_key(&self) -> &String
pub fn is_unix(&self) -> bool
pub fn wants_daemon(&self) -> bool
pub fn can_daemon(&self) -> bool
pub fn random_relay(&self) -> Arc<Relay>
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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