pub struct Meta { /* private fields */ }Implementations§
Source§impl Meta
impl Meta
pub fn sid_name(&self) -> &str
pub fn ttl_minutes(&self) -> u16
pub fn ttl_seconds(&self) -> u32
pub fn create_stamp(&self) -> u64
pub fn sid(&self) -> &str
pub fn config( &mut self, sid_name: Option<&'static str>, ttl_minutes: Option<u16>, )
pub fn renew(&mut self, sid: Option<String>) -> DceResult<()>
pub fn new(ttl_minutes: u16) -> DceResult<Self>
pub fn new_with_sid(sid_pool: Vec<String>) -> DceResult<Self>
pub fn gen_id(ttl_minutes: u16) -> DceResult<(String, u64)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
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