pub struct TorController { /* private fields */ }Implementations§
Source§impl TorController
impl TorController
pub fn protocol_info(&mut self) -> Result<ProtocolInfo, Error>
pub fn connect_default_with_password( password: String, ) -> Result<TorController, Error>
pub fn connect_with_password<A: ToSocketAddrs>( addr: A, password: String, ) -> Result<TorController, Error>
pub fn add_onion( &mut self, key_type: KeyType, port: u16, ) -> Result<HiddenService, Error>
pub fn add_onion_default(&mut self, port: u16) -> Result<HiddenService, Error>
pub fn add_onion_with_key( &mut self, key_type: KeyType, key: String, port: u16, ) -> Result<HiddenService, Error>
pub fn delete_onion(&mut self, service_id: ServiceID) -> Result<(), Error>
pub fn get_info( &mut self, info_fields: Vec<&str>, ) -> Result<HashMap<String, String>, Error>
pub fn signal(&mut self, signal: Signal) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for TorController
impl RefUnwindSafe for TorController
impl Send for TorController
impl Sync for TorController
impl Unpin for TorController
impl UnwindSafe for TorController
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