Struct ntp_proto::KeySetProvider
source · pub struct KeySetProvider { /* private fields */ }Implementations§
source§impl KeySetProvider
impl KeySetProvider
sourcepub fn new(history: usize) -> Self
pub fn new(history: usize) -> Self
Create a new keysetprovider that keeps history old keys around (so in total, history+1 keys are valid at any time)
pub fn load( reader: &mut impl Read, history: usize ) -> Result<(Self, SystemTime)>
pub fn store(&self, writer: &mut impl Write) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for KeySetProvider
impl Send for KeySetProvider
impl Sync for KeySetProvider
impl Unpin for KeySetProvider
impl UnwindSafe for KeySetProvider
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