pub enum SecurityRtpsError {
Truncated(&'static str),
UnexpectedSubmessageId {
pos: usize,
expected: u8,
got: u8,
},
BigEndianNotSupported,
InconsistentLength,
Crypto(SecurityError),
}Expand description
Error on encode/decode.
Variants§
Truncated(&'static str)
Input bytes too short for the expected submessage structure.
UnexpectedSubmessageId
Submessage ID does not match the expected slot (e.g. SEC_PREFIX missing or SEC_BODY ID wrong).
Fields
BigEndianNotSupported
Big-endian sec submessage — big-endian sec submessage (major-2.0 additive).
InconsistentLength
The ciphertext length in the SEC_BODY does not match the submessage length header (wire tampering?).
Crypto(SecurityError)
Crypto-plugin error passed through.
Trait Implementations§
Source§impl Clone for SecurityRtpsError
impl Clone for SecurityRtpsError
Source§fn clone(&self) -> SecurityRtpsError
fn clone(&self) -> SecurityRtpsError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecurityRtpsError
impl Debug for SecurityRtpsError
Source§impl Display for SecurityRtpsError
impl Display for SecurityRtpsError
impl Eq for SecurityRtpsError
Source§impl Error for SecurityRtpsError
Available on crate feature std only.
impl Error for SecurityRtpsError
Available on crate feature
std only.1.30.0 · 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<SecurityError> for SecurityRtpsError
impl From<SecurityError> for SecurityRtpsError
Source§fn from(e: SecurityError) -> Self
fn from(e: SecurityError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecurityRtpsError
impl PartialEq for SecurityRtpsError
Source§fn eq(&self, other: &SecurityRtpsError) -> bool
fn eq(&self, other: &SecurityRtpsError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityRtpsError
Auto Trait Implementations§
impl Freeze for SecurityRtpsError
impl RefUnwindSafe for SecurityRtpsError
impl Send for SecurityRtpsError
impl Sync for SecurityRtpsError
impl Unpin for SecurityRtpsError
impl UnsafeUnpin for SecurityRtpsError
impl UnwindSafe for SecurityRtpsError
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