#[non_exhaustive]pub enum StreamError {
#[non_exhaustive] StreamError {
code: Code,
reason: String,
},
#[non_exhaustive] RemoteTerminate {
code: Code,
},
#[non_exhaustive] ConnectionError(ConnectionError),
#[non_exhaustive] HeaderTooBig {
actual_size: u64,
max_size: u64,
},
#[non_exhaustive] RemoteClosing,
#[non_exhaustive] Undefined(Box<dyn Error + Send + Sync>),
}Expand description
This enum represents a stream error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]StreamError
The error occurred on the stream
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]RemoteTerminate
The remote peer terminated the corresponding stream side
Either Reset on peers sending side or StopSending on peers receiving side
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]ConnectionError(ConnectionError)
The error occurred on the connection
#[non_exhaustive]HeaderTooBig
Error is used when violating the MAX_FIELD_SECTION_SIZE
This can mean different things depending on the context When sending a request, this means, that the request cannot be sent because the header is larger then permitted by the server When receiving a request, this means, that the server sent a
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]RemoteClosing
Received a GoAway frame from the remote
Stream operations cannot be performed
#[non_exhaustive]Undefined(Box<dyn Error + Send + Sync>)
Undefined error propagated by the quic layer
Implementations§
Source§impl StreamError
impl StreamError
Sourcepub fn is_h3_no_error(&self) -> bool
pub fn is_h3_no_error(&self) -> bool
Returns if the error is H3_NO_ERROR
Trait Implementations§
Source§impl Debug for StreamError
impl Debug for StreamError
Source§impl Display for StreamError
impl Display for StreamError
Source§impl Error for StreamError
impl Error for StreamError
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 StreamError
impl !RefUnwindSafe for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl !UnwindSafe for StreamError
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