Struct hsmtool::util::ef::ElementaryFile
source · pub struct ElementaryFile {
pub name: String,
pub application: Option<String>,
pub private: bool,
}
Fields§
§name: String
§application: Option<String>
§private: bool
Implementations§
source§impl ElementaryFile
impl ElementaryFile
pub fn new(name: String) -> Self
pub fn application(self, app: String) -> Self
pub fn private(self, private: bool) -> Self
pub fn find(session: &Session, search: AttributeMap) -> Result<Vec<Self>>
pub fn list(session: &Session) -> Result<Vec<Self>>
pub fn exists(self, session: &Session) -> Result<bool>
pub fn read(self, session: &Session) -> Result<Vec<u8>>
pub fn write(self, session: &Session, data: &[u8]) -> Result<()>
Trait Implementations§
source§impl Clone for ElementaryFile
impl Clone for ElementaryFile
source§fn clone(&self) -> ElementaryFile
fn clone(&self) -> ElementaryFile
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ElementaryFile
impl Debug for ElementaryFile
source§impl Default for ElementaryFile
impl Default for ElementaryFile
source§fn default() -> ElementaryFile
fn default() -> ElementaryFile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ElementaryFile
impl Send for ElementaryFile
impl Sync for ElementaryFile
impl Unpin for ElementaryFile
impl UnwindSafe for ElementaryFile
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