Struct InternalConnectionError
pub struct InternalConnectionError { /* private fields */ }Available on crate features
quic and h3 and i-implement-a-third-party-backend-and-opt-into-breaking-changes 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§
§impl InternalConnectionError
impl InternalConnectionError
pub fn new(code: Code, message: String) -> InternalConnectionError
pub fn new(code: Code, message: String) -> InternalConnectionError
Create a new internal connection error
pub 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§
§impl Clone for InternalConnectionError
impl Clone for InternalConnectionError
§fn clone(&self) -> InternalConnectionError
fn clone(&self) -> InternalConnectionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for InternalConnectionError
impl Debug for InternalConnectionError
§impl From<InternalConnectionError> for ErrorOrigin
impl From<InternalConnectionError> for ErrorOrigin
§fn from(error: InternalConnectionError) -> ErrorOrigin
fn from(error: InternalConnectionError) -> ErrorOrigin
Converts to this type from the input type.
§impl From<InternalConnectionError> for LocalError
impl From<InternalConnectionError> for LocalError
§fn from(err: InternalConnectionError) -> LocalError
fn from(err: InternalConnectionError) -> LocalError
Converts to this type from the input type.
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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