pub struct SaTokenStateBuilder { /* private fields */ }Expand description
状态构建器
Implementations§
Source§impl SaTokenStateBuilder
impl SaTokenStateBuilder
pub fn new() -> Self
pub fn storage(self, storage: Arc<dyn SaStorage>) -> Self
pub fn token_name(self, name: impl Into<String>) -> Self
pub fn timeout(self, timeout: i64) -> Self
pub fn active_timeout(self, timeout: i64) -> Self
pub fn build(self) -> Data<SaTokenState>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SaTokenStateBuilder
impl !RefUnwindSafe for SaTokenStateBuilder
impl Send for SaTokenStateBuilder
impl Sync for SaTokenStateBuilder
impl Unpin for SaTokenStateBuilder
impl !UnwindSafe for SaTokenStateBuilder
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