pub struct StunError {
pub error_type: StunErrorType,
pub info: StunErrorInfo,
}
Expand description
Stun error
Fields§
§error_type: StunErrorType
Error type
info: StunErrorInfo
Information 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)>
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<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
impl Eq for StunError
Auto Trait Implementations§
impl Freeze for StunError
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