Struct tor_interface::mock_tor_client::MockTorClient
source · pub struct MockTorClient { /* private fields */ }
Implementations§
source§impl MockTorClient
impl MockTorClient
pub fn new() -> MockTorClient
Trait Implementations§
source§impl Default for MockTorClient
impl Default for MockTorClient
source§impl Drop for MockTorClient
impl Drop for MockTorClient
source§impl TorProvider for MockTorClient
impl TorProvider for MockTorClient
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, _token: CircuitToken)
Auto Trait Implementations§
impl Freeze for MockTorClient
impl RefUnwindSafe for MockTorClient
impl Send for MockTorClient
impl Sync for MockTorClient
impl Unpin for MockTorClient
impl UnwindSafe for MockTorClient
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