pub struct EncryptedFileSessionStorage { /* private fields */ }Implementations§
Source§impl EncryptedFileSessionStorage
impl EncryptedFileSessionStorage
pub fn new() -> Result<Self, SeaError>
Sourcepub fn with_dir_and_key(dir: PathBuf, key: Vec<u8>) -> Self
pub fn with_dir_and_key(dir: PathBuf, key: Vec<u8>) -> Self
Test-friendly constructor with explicit key (bypasses env and file)
Sourcepub fn with_dir_key_expiry(dir: PathBuf, key: Vec<u8>, expiry_secs: u64) -> Self
pub fn with_dir_key_expiry(dir: PathBuf, key: Vec<u8>, expiry_secs: u64) -> Self
Test-friendly constructor with explicit expiry (seconds)
Sourcepub fn with_session_dir(session_dir: PathBuf) -> Result<Self, SeaError>
pub fn with_session_dir(session_dir: PathBuf) -> Result<Self, SeaError>
Config-friendly constructor with explicit session directory (used by CLI tools)
The session_dir is the FULL path — no “beam/sessions” suffix is appended.
Pass ~/.config/beam/sessions expanded to an absolute path.
Trait Implementations§
Source§impl SessionStorage for EncryptedFileSessionStorage
impl SessionStorage for EncryptedFileSessionStorage
fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
alias: &'life1 str,
pair: &'life2 KeyPair,
) -> Pin<Box<dyn Future<Output = Result<(), SeaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
alias: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<KeyPair>, SeaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn clear<'life0, 'life1, 'async_trait>(
&'life0 self,
alias: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SeaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for EncryptedFileSessionStorage
impl RefUnwindSafe for EncryptedFileSessionStorage
impl Send for EncryptedFileSessionStorage
impl Sync for EncryptedFileSessionStorage
impl Unpin for EncryptedFileSessionStorage
impl UnsafeUnpin for EncryptedFileSessionStorage
impl UnwindSafe for EncryptedFileSessionStorage
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