Struct yubihsm::object::Label [−][src]
Labels attached to objects
Methods
impl Label
[src]
impl Label
pub fn new(label_slice: &[u8]) -> Result<Self, Error>
[src]
pub fn new(label_slice: &[u8]) -> Result<Self, Error>
Create a new label from a slice, returning an error if it's over 40-bytes
pub fn to_string(&self) -> Result<String, Error>
[src]
pub fn to_string(&self) -> Result<String, Error>
Create a string representation of this label
Trait Implementations
impl AsRef<[u8]> for Label
[src]
impl AsRef<[u8]> for Label
impl Clone for Label
[src]
impl Clone for Label
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Label
[src]
impl Debug for Label
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> From<&'a str> for Label
[src]
impl<'a> From<&'a str> for Label
impl PartialEq for Label
[src]
impl PartialEq for Label
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Deref for Label
[src]
impl Deref for Label
type Target = [u8; 40]
The resulting type after dereferencing.
fn deref(&self) -> &[u8; 40]
[src]
fn deref(&self) -> &[u8; 40]
Dereferences the value.
impl DerefMut for Label
[src]
impl DerefMut for Label
impl Serialize for Label
[src]
impl Serialize for Label
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Label
[src]
impl<'de> Deserialize<'de> for Label
fn deserialize<D>(deserializer: D) -> Result<Label, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Label, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more