pub struct Ticketer {}Available on (crate features
std or hashbrown) and crate feature ring only.Expand description
A concrete, safe ticket creation mechanism.
Implementations§
source§impl Ticketer
impl Ticketer
sourcepub fn new() -> Result<Arc<dyn ProducesTickets>, Error>
Available on crate feature std only.
pub fn new() -> Result<Arc<dyn ProducesTickets>, Error>
std only.Make the recommended Ticketer. This produces tickets with a 12 hour life and randomly generated keys.
The encryption mechanism used is injected via TICKETER_AEAD; it must take a 256-bit key and 96-bit nonce.
Auto Trait Implementations§
impl Freeze for Ticketer
impl RefUnwindSafe for Ticketer
impl Send for Ticketer
impl Sync for Ticketer
impl Unpin for Ticketer
impl UnwindSafe for Ticketer
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes