pub struct StunError {
pub error_type: StunErrorType,
pub info: StunErrorInfo,
}Expand description
Stun error
Fields§
§error_type: StunErrorTypeError type
info: StunErrorInfoInformation about the error
Trait Implementations§
source§impl Error for StunError
impl Error for StunError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<TryFromIntError> for StunError
impl From<TryFromIntError> for StunError
source§fn from(e: TryFromIntError) -> Self
fn from(e: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl From<TryFromSliceError> for StunError
impl From<TryFromSliceError> for StunError
source§fn from(e: TryFromSliceError) -> Self
fn from(e: TryFromSliceError) -> Self
Converts to this type from the input type.
source§impl PartialEq<StunError> for StunErrorType
impl PartialEq<StunError> for StunErrorType
source§impl PartialEq<StunErrorType> for StunError
impl PartialEq<StunErrorType> for StunError
source§fn eq(&self, other: &StunErrorType) -> bool
fn eq(&self, other: &StunErrorType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq for StunError
impl PartialEq for StunError
impl Eq for StunError
Auto Trait Implementations§
impl !RefUnwindSafe for StunError
impl !Send for StunError
impl !Sync for StunError
impl Unpin for StunError
impl !UnwindSafe for StunError
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