Skip to main content

Module poll

Module poll 

Source
Expand description

Poll operations and their async helpers.

Structs§

AcceptBi
A pending Session::accept_bi.
AcceptUni
A pending Session::accept_uni.
Buffered
Leases over a transport that cannot keep bytes unconsumed, buffering what it reads.
BufferedLease
A Lease of a Buffered stream.
OpenBi
A pending Session::open_bi.
OpenUni
A pending Session::open_uni.
ReadChunk
A pending RecvStream::read_chunk.
RecvDatagram
A pending Session::recv_datagram.
SendClosed
A pending SendStream::closed.
SendOptions
How an outgoing stream or datagram is scheduled, like W3C WebTransport’s send options.
SessionClosed
A pending Session::closed.
Write
A pending SendStream::write.
WriteBuf
A pending SendStream::write_buf.
WriteChunk
A pending SendStream::write_chunk.

Enums§

Ungrouped
The send group of a transport that has none, which cannot be constructed.

Traits§

Boxable
A transport that the async client and server can box: the session, its streams, send groups, and errors are thread-safe. Implemented automatically.
Chunks
A receive stream read as plain chunks, whose flow-control credit returns as it reads.
Lease
Unreleased bytes borrowed from a RecvStream by poll_lease, read as a Buf.
RecvStream
An incoming stream, read through leases of the bytes its transport buffers.
SendGroup
A transport’s send group, from Session::send_group.
SendStream
An outgoing stream with partial writes, priorities, and reset codes.
Session
A transport session, shared by reference between the tasks that use it.

Type Aliases§

BiStreams
The outgoing and incoming halves of a bidirectional stream.