Skip to main content

Module proto_oneshot

Module proto_oneshot 

Source
Expand description

oneshot channel between a circuit control message handler and the main code

Wraps up a oneshot and deals with some error handling.

Used by connect

Re-exportsยง

use oneshot_fused_workaround as oneshot; ๐Ÿ”’
use tor_cell::relaycell::RelayMsg; ๐Ÿ”’
use tor_cell::relaycell::msg::AnyRelayMsg; ๐Ÿ”’
use tor_error::internal; ๐Ÿ”’
use tor_proto::MetaCellDisposition; ๐Ÿ”’
use crate::FailedAttemptError; ๐Ÿ”’

Structsยง

Receiver ๐Ÿ”’
Receiver for awaiting the protocol message when the circuit handler sends it
Sender ๐Ÿ”’
Sender, owned by the circuit message handler

Functionsยง

channel ๐Ÿ”’
Create a new proto_oneshot::Sender and proto_oneshot::Receiver