Skip to main content

UnreliableSocket

Type Alias UnreliableSocket 

Source
pub type UnreliableSocket<const C: usize> = SessionSocket<C, Stateless<C>>;
Expand description

Represents a stateless (and therefore unreliable) socket.

Aliased Type§

pub struct UnreliableSocket<const C: usize> {
    state: Stateless<C>,
    upstream_frames_in: Pin<Box<dyn AsyncWrite + Send>>,
    downstream_frames_out: Pin<Box<dyn AsyncRead + Send>>,
    write_state: WriteState,
}

Fields§

§state: Stateless<C>§upstream_frames_in: Pin<Box<dyn AsyncWrite + Send>>§downstream_frames_out: Pin<Box<dyn AsyncRead + Send>>§write_state: WriteState