pub struct PolicyAccuracy<'a> { /* private fields */ }Expand description
Trusted accuracy for an explicitly identified TSA policy.
The caller authenticates this policy and its association with the selected
TSA. The checker compares its identifier to the signed TSTInfo policy.
Implementations§
Source§impl<'a> PolicyAccuracy<'a>
impl<'a> PolicyAccuracy<'a>
Sourcepub const fn new(
policy: Oid<'a>,
accuracy: Accuracy,
) -> Result<Self, InvalidPolicyAccuracy>
pub const fn new( policy: Oid<'a>, accuracy: Accuracy, ) -> Result<Self, InvalidPolicyAccuracy>
Bind a caller-established deviation to its policy identifier. Zero denotes an omitted component, not an implicit whole-accuracy default.
Trait Implementations§
Source§impl<'a> Clone for PolicyAccuracy<'a>
impl<'a> Clone for PolicyAccuracy<'a>
impl<'a> Copy for PolicyAccuracy<'a>
Auto Trait Implementations§
impl<'a> Freeze for PolicyAccuracy<'a>
impl<'a> RefUnwindSafe for PolicyAccuracy<'a>
impl<'a> Send for PolicyAccuracy<'a>
impl<'a> Sync for PolicyAccuracy<'a>
impl<'a> Unpin for PolicyAccuracy<'a>
impl<'a> UnsafeUnpin for PolicyAccuracy<'a>
impl<'a> UnwindSafe for PolicyAccuracy<'a>
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