Struct network::peer::Peer [−][src]
pub struct Peer<TSocket> { /* fields omitted */ }Expand description
The Peer actor manages a single connection to another remote peer after
the initial connection establishment and handshake.
Implementations
pub fn new(
network_context: NetworkContext,
executor: Handle,
time_service: TimeService,
connection: Connection<TSocket>,
connection_notifs_tx: Sender<TransportNotification<TSocket>>,
peer_reqs_rx: Receiver<ProtocolId, PeerRequest>,
peer_notifs_tx: Sender<ProtocolId, PeerNotification>,
inbound_rpc_timeout: Duration,
max_concurrent_inbound_rpcs: u32,
max_concurrent_outbound_rpcs: u32,
max_frame_size: usize,
inbound_rate_limiter: Option<SharedBucket>,
outbound_rate_limiter: Option<SharedBucket>
) -> Self
Auto Trait Implementations
impl<TSocket> !RefUnwindSafe for Peer<TSocket>
impl<TSocket> !UnwindSafe for Peer<TSocket>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self