pub struct E2ESessionConfig {
pub identity_id: String,
pub base_path: String,
pub store: Arc<dyn KeyStore>,
pub on_key_change: Option<OnKeyChange>,
pub password_hash: Option<String>,
pub rotation_interval: Option<Duration>,
pub on_rotation: Option<Arc<dyn Fn() + Send + Sync>>,
pub max_announcement_age: Option<Duration>,
}Expand description
Configuration for an E2E session.
Fields§
§identity_id: String§base_path: String§store: Arc<dyn KeyStore>§on_key_change: Option<OnKeyChange>§password_hash: Option<String>§rotation_interval: Option<Duration>Automatic key rotation interval. If set, maybe_rotate() will
trigger rotation when this duration has elapsed since the last rotation.
Minimum enforced: 60 seconds.
on_rotation: Option<Arc<dyn Fn() + Send + Sync>>Called after automatic key rotation completes.
max_announcement_age: Option<Duration>Maximum age of a peer’s public key announcement before rejection.
Default: 5 minutes. Set to None to disable timestamp validation.
Auto Trait Implementations§
impl Freeze for E2ESessionConfig
impl !RefUnwindSafe for E2ESessionConfig
impl Send for E2ESessionConfig
impl Sync for E2ESessionConfig
impl Unpin for E2ESessionConfig
impl UnsafeUnpin for E2ESessionConfig
impl !UnwindSafe for E2ESessionConfig
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