pub struct TimeLockTime { /* private fields */ }Expand description
An explicit time value supplied by the caller for encryption-time key derivation.
hour is always expressed in 24-hour notation (0–23) regardless of
the TimeFormat chosen for the KDF string — the format flag only
controls how the string is rendered, not how you supply the input.
§Example
use toolkit_zero::encryption::timelock::TimeLockTime;
let t = TimeLockTime::new(14, 37).unwrap(); // 14:37 local (2:37 PM)Implementations§
Source§impl TimeLockTime
impl TimeLockTime
Trait Implementations§
Source§impl Clone for TimeLockTime
impl Clone for TimeLockTime
Source§fn clone(&self) -> TimeLockTime
fn clone(&self) -> TimeLockTime
Returns a duplicate of the value. Read more
1.0.0 · 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 TimeLockTime
impl Debug for TimeLockTime
Source§impl PartialEq for TimeLockTime
impl PartialEq for TimeLockTime
impl Copy for TimeLockTime
impl Eq for TimeLockTime
impl StructuralPartialEq for TimeLockTime
Auto Trait Implementations§
impl Freeze for TimeLockTime
impl RefUnwindSafe for TimeLockTime
impl Send for TimeLockTime
impl Sync for TimeLockTime
impl Unpin for TimeLockTime
impl UnsafeUnpin for TimeLockTime
impl UnwindSafe for TimeLockTime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.