pub enum SecurityRtpsError {
Truncated(&'static str),
UnexpectedSubmessageId {
pos: usize,
expected: u8,
got: u8,
},
BigEndianNotSupported,
InconsistentLength,
Crypto(SecurityError),
}Expand description
Fehler beim Kodieren/Dekodieren.
Variants§
Truncated(&'static str)
Input-Bytes zu kurz fuer die erwartete Submessage-Struktur.
UnexpectedSubmessageId
Submessage-ID passt nicht zum erwarteten Slot (z.B. SEC_PREFIX fehlt oder SEC_BODY-ID falsch).
Fields
BigEndianNotSupported
Big-Endian-Sec-Submessage — Big-Endian-Sec-Submessage (Major-2.0-additive).
InconsistentLength
Ciphertext-Laenge im SEC_BODY stimmt nicht mit dem Submessage- Length-Header ueberein (Wire-Tampering?).
Crypto(SecurityError)
Crypto-Plugin-Fehler durchgereicht.
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
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 Eq for SecurityRtpsError
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