pub struct TokioTcp;Implementations§
Source§impl TokioTcp
impl TokioTcp
Sourcepub fn outgoing_connection<A>(
addr: A,
chunk_size: usize,
) -> Flow<Vec<u8>, Vec<u8>, StreamCompletion<TcpConnection>>
pub fn outgoing_connection<A>( addr: A, chunk_size: usize, ) -> Flow<Vec<u8>, Vec<u8>, StreamCompletion<TcpConnection>>
Opens a plain TCP outgoing connection as a coupled byte flow.
TLS and UDP are outside WP-12b and intentionally deferred. Reads are bounded by a capacity-1 channel: once one chunk is waiting for downstream demand, the Tokio task stops reading until the stream consumes it. The flow does not hide an unbounded receive buffer.
pub fn outgoing_connection_default<A>( addr: A, ) -> Flow<Vec<u8>, Vec<u8>, StreamCompletion<TcpConnection>>
Sourcepub fn bind<A>(
addr: A,
chunk_size: usize,
) -> Source<TcpIncomingConnection, StreamCompletion<TcpBinding>>
pub fn bind<A>( addr: A, chunk_size: usize, ) -> Source<TcpIncomingConnection, StreamCompletion<TcpBinding>>
Binds a plain TCP listener and emits accepted incoming connections.
Each accepted connection carries independent byte source/sink halves and
can be converted into a coupled flow. The accept loop is demand-gated:
one downstream pull permits one Tokio accept. TLS and UDP are deferred.
pub fn bind_default<A>( addr: A, ) -> Source<TcpIncomingConnection, StreamCompletion<TcpBinding>>
Auto Trait Implementations§
impl Freeze for TokioTcp
impl RefUnwindSafe for TokioTcp
impl Send for TokioTcp
impl Sync for TokioTcp
impl Unpin for TokioTcp
impl UnsafeUnpin for TokioTcp
impl UnwindSafe for TokioTcp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage