pub struct Module {
pub pkcs11: Pkcs11,
pub session: Option<Rc<Session>>,
pub acorn: Option<Box<dyn SpxInterface>>,
pub token: Option<String>,
}
Fields§
§pkcs11: Pkcs11
§session: Option<Rc<Session>>
§acorn: Option<Box<dyn SpxInterface>>
§token: Option<String>
Implementations§
source§impl Module
impl Module
pub fn initialize(module: &str) -> Result<Self>
pub fn initialize_spx(&mut self, module: &SpxModule) -> Result<()>
pub fn get_session(&self) -> Option<&Session>
pub fn get_token(&self, label: &str) -> Result<Slot>
pub fn connect( &mut self, token: &str, user: Option<UserType>, pin: Option<&str> ) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for Module
impl !Send for Module
impl !Sync for Module
impl Unpin for Module
impl !UnwindSafe for Module
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