pub enum SessionError {
ConnectionError(ConnectionError),
WebTransportError(WebTransportError),
SendDatagramError(SendDatagramError),
}
Expand description
An errors returned by crate::Session
, split based on if they are underlying QUIC errors or WebTransport errors.
Variants§
ConnectionError(ConnectionError)
WebTransportError(WebTransportError)
SendDatagramError(SendDatagramError)
Trait Implementations§
Source§impl Clone for SessionError
impl Clone for SessionError
Source§fn clone(&self) -> SessionError
fn clone(&self) -> SessionError
Returns a copy 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 moreSource§impl Debug for SessionError
impl Debug for SessionError
Source§impl Display for SessionError
impl Display for SessionError
Source§impl Error for SessionError
impl Error for SessionError
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<ConnectionError> for SessionError
impl From<ConnectionError> for SessionError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<SendDatagramError> for SessionError
impl From<SendDatagramError> for SessionError
Source§fn from(source: SendDatagramError) -> Self
fn from(source: SendDatagramError) -> Self
Converts to this type from the input type.
Source§impl From<SessionError> for ReadError
impl From<SessionError> for ReadError
Source§fn from(source: SessionError) -> Self
fn from(source: SessionError) -> Self
Converts to this type from the input type.
Source§impl From<SessionError> for StoppedError
impl From<SessionError> for StoppedError
Source§fn from(source: SessionError) -> Self
fn from(source: SessionError) -> Self
Converts to this type from the input type.
Source§impl From<SessionError> for WriteError
impl From<SessionError> for WriteError
Source§fn from(source: SessionError) -> Self
fn from(source: SessionError) -> Self
Converts to this type from the input type.
Source§impl From<WebTransportError> for SessionError
impl From<WebTransportError> for SessionError
Source§fn from(source: WebTransportError) -> Self
fn from(source: WebTransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for SessionError
impl RefUnwindSafe for SessionError
impl Send for SessionError
impl Sync for SessionError
impl Unpin for SessionError
impl UnwindSafe for SessionError
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
)