Skip to main content

Replier

Type Alias Replier 

Source
pub type Replier = Endpoint<Rep>;
Expand description

The replying half of Req/Rep.

Aliased Type§

pub struct Replier { /* private fields */ }

Implementations§

Source§

impl Replier

Source

pub fn path(&self) -> &str

The endpoint path this replier serves.

Source

pub async fn accept(&self) -> Result<IncomingRequest, Error>

Waits for the next request.

Requests queue up to Limits::endpoint_queue; beyond that the sending side blocks, which propagates backpressure to the peer through QUIC flow control rather than growing an unbounded queue (master doc §50).