Struct recrypt::api::PrivateSigningKey [−]
pub struct PrivateSigningKey { /* fields omitted */ }
Methods
impl PrivateSigningKey
impl PrivateSigningKey
pub fn new(bytes: [u8; 64]) -> Self
pub fn new(bytes: [u8; 64]) -> Self
construct $t from fixed size byte array
pub fn bytes(&self) -> &[u8; 64]
pub fn bytes(&self) -> &[u8; 64]
pub fn new_from_slice(bytes: &[u8]) -> Result<PrivateSigningKey, ApiErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<PrivateSigningKey, ApiErr>
construct $t from byte slice. Input slice must be exactly the correct length for the type.
Returns
Ok($t) or Err($ApiError::InputWrongSize]
Trait Implementations
impl Clone for PrivateSigningKey
impl Clone for PrivateSigningKey
fn clone(&self) -> PrivateSigningKey
fn clone(&self) -> PrivateSigningKey
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 Copy for PrivateSigningKey
impl Copy for PrivateSigningKey
impl Debug for PrivateSigningKey
impl Debug for PrivateSigningKey
fn fmt(&self, formatter: &mut Formatter) -> Result
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for PrivateSigningKey
impl PartialEq for PrivateSigningKey
fn eq(&self, other: &PrivateSigningKey) -> bool
fn eq(&self, other: &PrivateSigningKey) -> 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 Eq for PrivateSigningKey
impl Eq for PrivateSigningKey
Auto Trait Implementations
impl Send for PrivateSigningKey
impl Send for PrivateSigningKey
impl Sync for PrivateSigningKey
impl Sync for PrivateSigningKey