Struct quinn_proto::TransportError
source · pub struct TransportError {
pub code: Code,
pub frame: Option<Type>,
pub reason: String,
}
Expand description
Transport-level errors occur when a peer violates the protocol specification
Fields§
§code: Code
Type of error
frame: Option<Type>
Frame type that triggered the error
reason: String
Human-readable explanation of the reason
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
source§impl From<Error> for ConnectionClose
impl From<Error> for ConnectionClose
source§fn from(x: TransportError) -> Self
fn from(x: TransportError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ConnectionError
impl From<Error> for ConnectionError
source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
source§impl From<Error> for TransportError
impl From<Error> for TransportError
impl Eq for Error
impl StructuralPartialEq for Error
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
)