pub struct InternalConnectionError { /* private fields */ }Available on crate feature
h3 only.Expand description
This error type represents an internal error type, which is used to represent errors, which have not yet affected the connection state
This error type is generated from the error types of h3s submodules or by the modules itself.
This error type is used in functions which handle a http3 connection state
Implementations§
Source§impl InternalConnectionError
impl InternalConnectionError
Sourcepub fn new(code: Code, message: String) -> InternalConnectionError
pub fn new(code: Code, message: String) -> InternalConnectionError
Create a new internal connection error
Sourcepub fn got_frame_error(value: FrameProtocolError) -> InternalConnectionError
pub fn got_frame_error(value: FrameProtocolError) -> InternalConnectionError
Creates a new internal connection error from a frame error
Trait Implementations§
Source§impl Clone for InternalConnectionError
impl Clone for InternalConnectionError
Source§fn clone(&self) -> InternalConnectionError
fn clone(&self) -> InternalConnectionError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InternalConnectionError
impl Debug for InternalConnectionError
Source§impl From<InternalConnectionError> for ErrorOrigin
impl From<InternalConnectionError> for ErrorOrigin
Source§fn from(error: InternalConnectionError) -> ErrorOrigin
fn from(error: InternalConnectionError) -> ErrorOrigin
Converts to this type from the input type.
Source§impl From<InternalConnectionError> for LocalError
impl From<InternalConnectionError> for LocalError
Source§fn from(err: InternalConnectionError) -> LocalError
fn from(err: InternalConnectionError) -> LocalError
Converts to this type from the input type.
Source§impl Hash for InternalConnectionError
impl Hash for InternalConnectionError
Auto Trait Implementations§
impl Freeze for InternalConnectionError
impl RefUnwindSafe for InternalConnectionError
impl Send for InternalConnectionError
impl Sync for InternalConnectionError
impl Unpin for InternalConnectionError
impl UnwindSafe for InternalConnectionError
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more