[go: up one dir, main page]

Crate cebolla

Crate cebolla 

Source

Re-exports§

pub use client::Client;
pub use arti_client;
pub use tor_cell;
pub use tor_hsservice;

Modules§

client
http
Wrapper for using poem to build HTTP servers over Tor

Macros§

ensure
Ensure a condition is true. If it is not, return from the function with an error.
ensure_whatever
Ensure a condition is true. If it is not, return a stringly-typed error message.
whatever
Instantiate and return a stringly-typed error message.

Structs§

Address
IP address for Tor connections
Connected
A Connected message is a successful response to a Begin message
DataStream
An anonymized stream over the Tor network.
End
An End message tells the other end of the circuit to close a stream.
EndReason
A declared reason for closing a stream
Error
A basic error type that you can use as a first step to better error handling.
HsNickname
Nickname (local identifier) for a Tor hidden service
OnionService
Tor Hidden Service
StreamRequest
A request from a client to open a new stream to an onion service.
Tor
Connection to the Tor network
TorClientConfig
A configuration used to bootstrap a TorClient.
TorConfig
Used to configure connections to the Tor network, in most cases you will want to bootstrap on startup, but there are cases where you might want to delay bootrstrapping since it does take time.
TorConnection
An incoming Tor connection stream, this is used to accept requests from incoming clients

Traits§

DisplayRedacted
A type that can be displayed in a redacted or un-redacted form, but which forces the caller to choose.
IntoTorAddr
An object that can be converted to a TorAddr with a minimum of risk.
ResultExt
Additions to Result.
Stream
A stream of values produced asynchronously.
StreamExt
An extension trait for Streams that provides a variety of convenient combinator functions.
_
Additions to Option.

Type Aliases§

Result
TorClient
TorClientBuilder

Derive Macros§

Snafu