pub struct OpaquePrivateKeyBytes(/* private fields */);Expand description
An opaque private key.
The encoded representation of an OpaquePrivateKeyBytes consists of a 4-byte length prefix,
followed by its byte representation.
Trait Implementations§
Source§impl AsRef<[u8]> for OpaquePrivateKeyBytes
impl AsRef<[u8]> for OpaquePrivateKeyBytes
Source§impl Clone for OpaquePrivateKeyBytes
impl Clone for OpaquePrivateKeyBytes
Source§fn clone(&self) -> OpaquePrivateKeyBytes
fn clone(&self) -> OpaquePrivateKeyBytes
Returns a duplicate 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 Decode for OpaquePrivateKeyBytes
impl Decode for OpaquePrivateKeyBytes
Source§impl Encode for OpaquePrivateKeyBytes
impl Encode for OpaquePrivateKeyBytes
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer.Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32 length prefix.Source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32 length prefix
set to Encode::encoded_len.Auto Trait Implementations§
impl Freeze for OpaquePrivateKeyBytes
impl RefUnwindSafe for OpaquePrivateKeyBytes
impl Send for OpaquePrivateKeyBytes
impl Sync for OpaquePrivateKeyBytes
impl Unpin for OpaquePrivateKeyBytes
impl UnwindSafe for OpaquePrivateKeyBytes
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