pub struct Frontend { /* private fields */ }
Implementations§
Source§impl Frontend
impl Frontend
pub fn new(frontend_id: FrontendId) -> Self
pub fn frontend_id(&self) -> FrontendId
pub fn register_session(&mut self, session: Arc<Mutex<Session>>)
pub async fn session(&self) -> Result<Arc<Mutex<Session>>, AgentError>
pub fn init_cryptographer(&mut self, secret_key: &str)
pub fn cryptographer(&self) -> Result<&Cryptographer, AgentError>
pub fn verify_and_consume_nonce( &mut self, encrypted_nonce: &Bits256, iv: &Bits96, ) -> Result<bool, AgentError>
pub fn salt(&self) -> Bits256
pub fn pbkdf2_iterations(&self) -> u32
pub fn challenge_nonce(&self) -> Result<Bits256, AgentError>
Auto Trait Implementations§
impl !Freeze for Frontend
impl !RefUnwindSafe for Frontend
impl Send for Frontend
impl Sync for Frontend
impl Unpin for Frontend
impl !UnwindSafe for Frontend
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