pub enum Error {
Reset(StreamId, Reason, Initiator),
GoAway(Bytes, Reason, Initiator),
Io(ErrorKind, Option<String>),
}
Expand description
Either an H2 reason or an I/O error
Variants§
Implementations§
source§impl Error
impl Error
pub(crate) fn is_local(&self) -> bool
pub(crate) fn user_go_away(reason: Reason) -> Self
pub(crate) fn library_reset(stream_id: StreamId, reason: Reason) -> Self
pub(crate) fn library_go_away(reason: Reason) -> Self
pub(crate) fn library_go_away_data( reason: Reason, debug_data: impl Into<Bytes>, ) -> Self
pub(crate) fn remote_reset(stream_id: StreamId, reason: Reason) -> Self
pub(crate) fn remote_go_away(debug_data: Bytes, reason: Reason) -> Self
Trait Implementations§
source§impl<T> From<Error> for RecvHeaderBlockError<T>
impl<T> From<Error> for RecvHeaderBlockError<T>
Auto Trait Implementations§
impl !Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)