Skip to main content

Module channel_provider

Module channel_provider 

Source
Expand description

Module exposing the ChannelProvider trait.

Relay circuit reactors use a ChannelProvider to open outgoing channels.

Re-exportsยง

use crate::Result; ๐Ÿ”’
use crate::channel::Channel; ๐Ÿ”’
use crate::circuit::UniqId; ๐Ÿ”’
use async_trait::async_trait; ๐Ÿ”’
use futures::channel::mpsc; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use tor_linkspec::HasRelayIds; ๐Ÿ”’

Structsยง

OutboundChanSender
A sender for returning an outgoing relay channel requested via ChannelProvider::get_or_launch.

Traitsยง

ChannelProvider
An object that can fulfill outbound channel requests issued by the relay circuit reactor.

Type Aliasesยง

ChannelResult
A channel result returned by a ChannelProvider.