[−][src]Struct tapir_cwtch::acns::tor::TorProcess
Implementations
impl TorProcess<TorDisconnected>
[src]
pub fn connect(control_port: u16) -> Result<TorProcess<TorConnected>, Error>
[src]
impl TorProcess<TorConnected>
[src]
From the control port spec... Before the client has authenticated, no command other than PROTOCOLINFO, AUTHCHALLENGE, AUTHENTICATE, or QUIT is valid. If the controller sends any other command, or sends a malformed command, or sends an unsuccessful AUTHENTICATE command, or sends PROTOCOLINFO or AUTHCHALLENGE more than once, Tor sends an error reply and closes the connection. We are more strict as we only allow the caller to authenticate
pub fn authenticate(
mut self: Self,
auth_method: Box<dyn TorAuthenticationMethod>
) -> Result<TorProcess<TorAuthenticated>, ACNError>
[src]
mut self: Self,
auth_method: Box<dyn TorAuthenticationMethod>
) -> Result<TorProcess<TorAuthenticated>, ACNError>
impl TorProcess<TorAuthenticated>
[src]
We are now authenticated!
pub fn add_onion_v3(
&mut self,
secret_key: SecretKey,
virtual_port: u16,
target_port: u16
) -> Result<String, ACNError>
[src]
&mut self,
secret_key: SecretKey,
virtual_port: u16,
target_port: u16
) -> Result<String, ACNError>
Tell the control port to create a new Onion V3 service given the ed25519 secret key...
Trait Implementations
impl<ConnectionStatus: Debug> Debug for TorProcess<ConnectionStatus>
[src]
Auto Trait Implementations
impl<ConnectionStatus> RefUnwindSafe for TorProcess<ConnectionStatus> where
ConnectionStatus: RefUnwindSafe,
[src]
ConnectionStatus: RefUnwindSafe,
impl<ConnectionStatus> Send for TorProcess<ConnectionStatus> where
ConnectionStatus: Send,
[src]
ConnectionStatus: Send,
impl<ConnectionStatus> Sync for TorProcess<ConnectionStatus> where
ConnectionStatus: Sync,
[src]
ConnectionStatus: Sync,
impl<ConnectionStatus> Unpin for TorProcess<ConnectionStatus> where
ConnectionStatus: Unpin,
[src]
ConnectionStatus: Unpin,
impl<ConnectionStatus> UnwindSafe for TorProcess<ConnectionStatus> where
ConnectionStatus: UnwindSafe,
[src]
ConnectionStatus: UnwindSafe,
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> Same<T> for T
type Output = T
Should always be Self
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,