Enum stun_types::message::StunParseError
source · pub enum StunParseError {
NotStun,
Truncated {
expected: usize,
actual: usize,
},
TooLarge {
expected: usize,
actual: usize,
},
IntegrityCheckFailed,
MissingAttribute(AttributeType),
AttributeAfterIntegrity(AttributeType),
AttributeAfterFingerprint(AttributeType),
FingerprintMismatch,
DataMismatch,
DuplicateIntegrity,
InvalidAttributeData,
WrongAttributeImplementation,
}Variants§
NotStun
Not a STUN message.
Truncated
The message has been truncated
TooLarge
The message has been truncated
IntegrityCheckFailed
Integrity value does not match computed value
MissingAttribute(AttributeType)
An attribute was not found in the message
AttributeAfterIntegrity(AttributeType)
An attribute was found after the message integrity attribute
AttributeAfterFingerprint(AttributeType)
An attribute was found after the message integrity attribute
FingerprintMismatch
Fingerprint does not match the data.
DataMismatch
The provided data does not match the message
DuplicateIntegrity
The message has multiple integrity attributes
InvalidAttributeData
The attribute contains invalid data
WrongAttributeImplementation
The attribute does not parse this data
Trait Implementations§
source§impl Debug for StunParseError
impl Debug for StunParseError
source§impl Display for StunParseError
impl Display for StunParseError
source§impl Error for StunParseError
impl Error for StunParseError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for StunParseError
impl RefUnwindSafe for StunParseError
impl Send for StunParseError
impl Sync for StunParseError
impl Unpin for StunParseError
impl UnwindSafe for StunParseError
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