pub struct StorageStpInterface { /* private fields */ }Expand description
基于 storage 的默认 StpInterface 实现 | Default storage-backed StpInterface
Implementations§
Trait Implementations§
Source§impl Debug for StorageStpInterface
impl Debug for StorageStpInterface
Source§impl StpInterface for StorageStpInterface
impl StpInterface for StorageStpInterface
Source§fn is_writable(&self) -> bool
fn is_writable(&self) -> bool
读写同源,故接受框架写入 | Reads and writes share storage, so writes are accepted
Source§fn get_permission_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
login_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = SaTokenResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_permission_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
login_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = SaTokenResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
返回账号在指定体系下的权限列表 | Permission list for the account in a login type
Source§fn get_role_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
login_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = SaTokenResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_role_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
login_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = SaTokenResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
返回账号在指定体系下的角色列表 | Role list for the account in a login type
Source§fn is_disabled<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
service: &'life2 str,
) -> Pin<Box<dyn Future<Output = SaTokenResult<Option<i32>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn is_disabled<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
service: &'life2 str,
) -> Pin<Box<dyn Future<Output = SaTokenResult<Option<i32>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
返回封禁等级;
None 表示未封禁。 Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StorageStpInterface
impl !UnwindSafe for StorageStpInterface
impl Freeze for StorageStpInterface
impl Send for StorageStpInterface
impl Sync for StorageStpInterface
impl Unpin for StorageStpInterface
impl UnsafeUnpin for StorageStpInterface
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