Skip to main content

Module stream

Module stream 

Source
Expand description

Objects that can become or wrap a arti_client::DataStream.

Re-exportsยง

use arti_client::rpc::ClientConnectionResult; ๐Ÿ”’
use arti_client::rpc::ConnectWithPrefs; ๐Ÿ”’
use arti_client::rpc::ResolvePtrWithPrefs; ๐Ÿ”’
use arti_client::rpc::ResolveWithPrefs; ๐Ÿ”’
use derive_deftly::Deftly; ๐Ÿ”’
use std::net::IpAddr; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use tor_error::into_internal; ๐Ÿ”’
use tor_proto::client::stream::ClientDataStreamCtrl; ๐Ÿ”’
use tor_rpcbase as rpc; ๐Ÿ”’
use crate::RpcSession; ๐Ÿ”’
use tor_rpcbase::templates::*; ๐Ÿ”’

Structsยง

NewOneshotClient ๐Ÿ”’
Create a new RpcOneshotClient to wait for a SOCKS request.
OneshotClient ๐Ÿ”’
An RPC object representing a single-use client that captures a data-stream.

Enumsยง

Inner ๐Ÿ”’
The inner state of an OneshotClient.
OneshotClientError ๐Ÿ”’
Error returned by an operations from OneshotClient.

Functionsยง

new_oneshot_client_impl ๐Ÿ”’
Helper: construct and register an OneshotClient.
new_oneshot_client_on_client ๐Ÿ”’
Implement NewOneshotClient for clients.
new_oneshot_client_on_session ๐Ÿ”’
Implement NewOneshotClient for RpcSession.
oneshot_client_connect_with_prefs ๐Ÿ”’
Invoke ConnectWithPrefs on an OneshotClient.
oneshot_client_resolve_ptr_with_prefs ๐Ÿ”’
Invoke ResolvePtrWithPrefs on an OneshotClient
oneshot_client_resolve_with_prefs ๐Ÿ”’
Invoke ResolveWithPrefs on an OneshotClient