pub struct TcpSessionTransport { /* private fields */ }Implementations§
Trait Implementations§
Source§impl SessionTransport for TcpSessionTransport
impl SessionTransport for TcpSessionTransport
Source§async fn send_bytes(&self, data: &[u8]) -> Result<(), CoreError>
async fn send_bytes(&self, data: &[u8]) -> Result<(), CoreError>
Send raw bytes to the peer. Read more
Source§async fn recv_bytes(&self) -> Result<Bytes, CoreError>
async fn recv_bytes(&self) -> Result<Bytes, CoreError>
Receive the next message from the peer. The returned
Bytes is
a refcounted view over an opaque buffer; subsequent clone()s
are cheap.Source§fn set_frame_phase(&self, phase: FramePhase)
fn set_frame_phase(&self, phase: FramePhase)
Move the transport to a new
FramePhase, adjusting the receive
frame-size cap (WIRE-001). Default no-op — transports that do not
length-prefix / buffer, or are inherently bounded, need not implement it.
Called once by the session machinery at the handshake → data-pump
boundary. Adding this defaulted method is source-compatible for every
existing impl.Auto Trait Implementations§
impl !Freeze for TcpSessionTransport
impl !RefUnwindSafe for TcpSessionTransport
impl Send for TcpSessionTransport
impl Sync for TcpSessionTransport
impl Unpin for TcpSessionTransport
impl UnsafeUnpin for TcpSessionTransport
impl UnwindSafe for TcpSessionTransport
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