pub enum SecurityGateError {
CryptoSetup(SecurityError),
Wrapper(SecurityRtpsError),
Crypto(SecurityError),
PolicyViolation(String),
}Expand description
Error class for the gate.
Variants§
CryptoSetup(SecurityError)
The crypto plugin could not register a local handle.
Wrapper(SecurityRtpsError)
Encode/decode of the secured wrapper failed.
Crypto(SecurityError)
The crypto operation itself failed.
PolicyViolation(String)
Inbound expected a SEC_PREFIX stream but got a different
submessage format (e.g. plaintext where governance requires SIGN).
Trait Implementations§
Source§impl Debug for SecurityGateError
impl Debug for SecurityGateError
Source§impl Display for SecurityGateError
impl Display for SecurityGateError
Source§impl Error for SecurityGateError
Available on crate feature std only.
impl Error for SecurityGateError
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<SecurityRtpsError> for SecurityGateError
impl From<SecurityRtpsError> for SecurityGateError
Source§fn from(e: SecurityRtpsError) -> Self
fn from(e: SecurityRtpsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SecurityGateError
impl RefUnwindSafe for SecurityGateError
impl Send for SecurityGateError
impl Sync for SecurityGateError
impl Unpin for SecurityGateError
impl UnsafeUnpin for SecurityGateError
impl UnwindSafe for SecurityGateError
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