pub struct Backend { /* private fields */ }Expand description
Implementations§
Source§impl Backend
impl Backend
Sourcepub fn lib_short(&self) -> &str
pub fn lib_short(&self) -> &str
Returns a short name for the library.
The short name is the file name with all extensions and any
leading lib stripped. Any invalid UTF-8 sequences are
replaced with U+FFFD REPLACEMENT CHARACTER.
Consider the library
/usr/lib/x86_64-linux-gnu/libykcs11.so.2. The short name is
ykcs11.
Sourcepub fn is_lib(&self, query: &str) -> bool
pub fn is_lib(&self, query: &str) -> bool
Returns whether query matches the backend.
Consider the library
/usr/lib/x86_64-linux-gnu/libykcs11.so.2. This matches on
the full path, on the filename (libykcs11.so.2), the
filename with each trailing component stripped
(libykcs11.so, and libykcs11), and the filename with any
initial lib prefix and all trailing components striped
(ykcs11).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Backend
impl !UnwindSafe for Backend
impl Freeze for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
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