pub struct Ticketer {}Available on (crate features
std or hashbrown) and crate feature aws_lc_rs 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 Ticketer uses the RFC 5077 §4 “Recommended Ticket Construction”,
using AES 256 for encryption and HMAC-SHA256 for ciphertext authentication.
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