[][src]Struct tapir_cwtch::acns::tor::TorProcess

pub struct TorProcess<ConnectionStatus> { /* fields omitted */ }

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]

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]

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]

impl<ConnectionStatus> Send for TorProcess<ConnectionStatus> where
    ConnectionStatus: Send
[src]

impl<ConnectionStatus> Sync for TorProcess<ConnectionStatus> where
    ConnectionStatus: Sync
[src]

impl<ConnectionStatus> Unpin for TorProcess<ConnectionStatus> where
    ConnectionStatus: Unpin
[src]

impl<ConnectionStatus> UnwindSafe for TorProcess<ConnectionStatus> where
    ConnectionStatus: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,