pub enum UserError {
InactiveStreamId,
UnexpectedFrameType,
PayloadTooBig,
Rejected,
ReleaseCapacityTooBig,
OverflowedStreamId,
MalformedHeaders,
MissingUriSchemeAndAuthority,
PollResetAfterSendResponse,
SendPingWhilePending,
SendSettingsWhilePending,
PeerDisabledServerPush,
}
Expand description
Errors caused by users of the library
Variants§
InactiveStreamId
The stream ID is no longer accepting frames.
UnexpectedFrameType
The stream is not currently expecting a frame of this type.
PayloadTooBig
The payload size is too big
Rejected
The application attempted to initiate too many streams to remote.
ReleaseCapacityTooBig
The released capacity is larger than claimed capacity.
OverflowedStreamId
The stream ID space is overflowed.
A new connection is needed.
MalformedHeaders
Illegal headers, such as connection-specific headers.
MissingUriSchemeAndAuthority
Request submitted with relative URI.
PollResetAfterSendResponse
Calls SendResponse::poll_reset
after having called send_response
.
SendPingWhilePending
Calls PingPong::send_ping
before receiving a pong.
SendSettingsWhilePending
Tries to update local SETTINGS while ACK has not been received.
PeerDisabledServerPush
Tries to send push promise to peer who has disabled server push
Trait Implementations§
source§impl Error for UserError
impl Error for UserError
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()
Auto Trait Implementations§
impl Freeze for UserError
impl RefUnwindSafe for UserError
impl Send for UserError
impl Sync for UserError
impl Unpin for UserError
impl UnwindSafe for UserError
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