Struct tor_interface::legacy_tor_client::LegacyTorClient
source · pub struct LegacyTorClient { /* private fields */ }
Implementations§
Trait Implementations§
source§impl TorProvider for LegacyTorClient
impl TorProvider for LegacyTorClient
fn update(&mut self) -> Result<Vec<TorEvent>, Error>
fn bootstrap(&mut self) -> Result<(), Error>
fn add_client_auth( &mut self, service_id: &V3OnionServiceId, client_auth: &X25519PrivateKey ) -> Result<(), Error>
fn remove_client_auth( &mut self, service_id: &V3OnionServiceId ) -> Result<(), Error>
fn connect( &mut self, service_id: &V3OnionServiceId, virt_port: u16, circuit: Option<CircuitToken> ) -> Result<OnionStream, Error>
fn listener( &mut self, private_key: &Ed25519PrivateKey, virt_port: u16, authorized_clients: Option<&[X25519PublicKey]> ) -> Result<OnionListener, Error>
fn generate_token(&mut self) -> CircuitToken
fn release_token(&mut self, circuit_token: CircuitToken)
Auto Trait Implementations§
impl Freeze for LegacyTorClient
impl RefUnwindSafe for LegacyTorClient
impl Send for LegacyTorClient
impl Sync for LegacyTorClient
impl Unpin for LegacyTorClient
impl UnwindSafe for LegacyTorClient
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