pub struct Ticketer {}
Expand description
A concrete, safe ticket creation mechanism.
Implementations
sourceimpl Ticketer
impl Ticketer
sourcepub fn new() -> Arc<dyn ProducesTickets>
pub fn new() -> Arc<dyn ProducesTickets>
Make the recommended Ticketer. This produces tickets with a 12 hour life and randomly generated keys.
The encryption mechanism used in Chacha20Poly1305.
Auto Trait Implementations
impl RefUnwindSafe for Ticketer
impl Send for Ticketer
impl Sync for Ticketer
impl Unpin for Ticketer
impl UnwindSafe for Ticketer
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more