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
sourceimpl Error for StunError
impl Error for StunError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<TryFromIntError> for StunError
impl From<TryFromIntError> for StunError
sourcefn from(e: TryFromIntError) -> Self
fn from(e: TryFromIntError) -> Self
Converts to this type from the input type.
sourceimpl From<TryFromSliceError> for StunError
impl From<TryFromSliceError> for StunError
sourcefn from(e: TryFromSliceError) -> Self
fn from(e: TryFromSliceError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<StunErrorType> for StunError
impl PartialEq<StunErrorType> for StunError
sourcefn eq(&self, other: &StunErrorType) -> bool
fn eq(&self, other: &StunErrorType) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more