Enum stun_rs::error::StunErrorType
source · pub enum StunErrorType {
InvalidParam,
ValidationFailed,
ValueTooLong,
SmallBuffer,
}Expand description
Defines the type of error
Variants§
InvalidParam
Invalid parameter
ValidationFailed
Failure to perform validations
ValueTooLong
Encoded or decoded value is bugger than the maximum allowed value
SmallBuffer
Small buffer
Trait Implementations§
source§impl Debug for StunErrorType
impl Debug for StunErrorType
source§impl Display for StunErrorType
impl Display for StunErrorType
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 StunErrorType
impl PartialEq for StunErrorType
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 ==.impl Eq for StunErrorType
impl StructuralPartialEq for StunErrorType
Auto Trait Implementations§
impl RefUnwindSafe for StunErrorType
impl Send for StunErrorType
impl Sync for StunErrorType
impl Unpin for StunErrorType
impl UnwindSafe for StunErrorType
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