[−][src]Struct libtor::Tor
Configuration builder for a Tor daemon
Offers the ability to set multiple flags and then start the daemon either in the current thread, or in a new one
Implementations
impl Tor
[src]
pub fn new() -> Tor
[src]
Create a new instance
pub fn flag(&mut self, flag: TorFlag) -> &mut Tor
[src]
Add a configuration flag
pub fn start(&self) -> Result<u8, Error>
[src]
Start the Tor daemon in the current thread
pub fn start_background(&self) -> JoinHandle<Result<u8, Error>>
[src]
Starts the Tor daemon in a background detached thread and return its handle
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tor
[src]
impl Send for Tor
[src]
impl Sync for Tor
[src]
impl Unpin for Tor
[src]
impl UnwindSafe for Tor
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,