Skip to main content

REQUEST_CANCELLED

Constant REQUEST_CANCELLED 

Source
pub const REQUEST_CANCELLED: u64 = _ /* 1u64 */;
Expand description

The application error code a request stream is reset with when the requester abandons it: CANCELLED, 0x1.

Draft-23 has no UNSUBSCRIBE or FETCH_CANCEL. Cancelling a request is resetting the bidirectional stream it was made on, and CANCELLED is the code draft-23 Section 12.5 assigns for “The stream was cancelled by either endpoint” — see StreamResetErrorCode::Cancelled. Taken from the codec’s own registry rather than written as a literal so a renumbering in a later draft cannot be missed here.

This is what RequestStream::cancel uses when no code is chosen for it, and what RequestStream’s Drop sends.