pub enum SlotMapError {
InvalidStreamId(i32),
AlreadyOpen(i32),
UnknownStream(i32),
GoAway {
stream_id: i32,
last_stream_id: i32,
error_code: u32,
},
Reset {
stream_id: i32,
error_code: u32,
},
InvalidTransition {
stream_id: i32,
operation: &'static str,
},
MemoryLimit {
stream_id: i32,
limit: usize,
},
MessageLimit {
stream_id: i32,
limit: usize,
},
InvalidCompressionFlag {
stream_id: i32,
flag: u8,
},
TruncatedFrame(i32),
NotClosed(i32),
}Expand description
A rejected stream operation. Rejection never consumes an input prefix.
Variants§
InvalidStreamId(i32)
HTTP/2 stream identifiers must be positive signed 31-bit integers.
AlreadyOpen(i32)
The identifier already has a slot.
UnknownStream(i32)
The identifier has no slot.
GoAway
The peer’s GOAWAY prohibits this stream.
Reset
An error or incomplete-response reset prevents reads of buffered events.
InvalidTransition
The event violates the receive or half-close lifecycle.
MemoryLimit
The stream would exceed its retained byte budget.
MessageLimit
The stream would exceed its queued message count.
InvalidCompressionFlag
A gRPC envelope compression flag was neither zero nor one.
TruncatedFrame(i32)
Trailers or END_STREAM arrived in an incomplete envelope.
NotClosed(i32)
Both halves must close, or a reset must arrive, before removal.
Trait Implementations§
Source§impl Clone for SlotMapError
impl Clone for SlotMapError
Source§impl Debug for SlotMapError
impl Debug for SlotMapError
Source§impl Display for SlotMapError
impl Display for SlotMapError
impl Eq for SlotMapError
Source§impl Error for SlotMapError
impl Error for SlotMapError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for SlotMapError
impl PartialEq for SlotMapError
impl StructuralPartialEq for SlotMapError
Auto Trait Implementations§
impl Freeze for SlotMapError
impl RefUnwindSafe for SlotMapError
impl Send for SlotMapError
impl Sync for SlotMapError
impl Unpin for SlotMapError
impl UnsafeUnpin for SlotMapError
impl UnwindSafe for SlotMapError
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