pub struct SafeData { /* private fields */ }Expand description
A Data packet whose signature has been verified.
SafeData can only be constructed by Validator::validate() or by the
local-trust fast path (SafeData::from_local_trusted). The pub(crate)
constructor prevents application code from bypassing verification.
Application callbacks receive SafeData, not Data — the compiler enforces
that unverified data cannot be passed where verified data is required.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SafeData
impl RefUnwindSafe for SafeData
impl Send for SafeData
impl Sync for SafeData
impl Unpin for SafeData
impl UnwindSafe for SafeData
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