pub struct ChannelBuilder { /* private fields */ }
Expand description

Structure for building and launching a Tor channel.

Implementations

Construct a new ChannelBuilder.

Set the declared target address of this channel.

Note that nothing enforces the correctness of this address: it doesn’t have to match the real address target of the TLS stream. For now it is only used for logging.

Launch a new client handshake over a TLS stream.

After calling this function, you’ll need to call connect() on the result to start the handshake. If that succeeds, you’ll have authentication info from the relay: call check() on the result to check that. Finally, to finish the handshake, call finish() on the result of that.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more