Struct bonsaidb::client::fabruic::PrivateKey
pub struct PrivateKey(/* private fields */);
Expand description
Implementations§
§impl PrivateKey
impl PrivateKey
pub fn from_der<P>(private_key: P) -> Result<PrivateKey, PrivateKey>
pub fn from_der<P>(private_key: P) -> Result<PrivateKey, PrivateKey>
Build PrivateKey
from DER-format. This is not meant as a full
validation of a PrivateKey
, it just offers some sane protections.
Errors
error::PrivateKey
if the certificate couldn’t be parsed.
pub fn unchecked_from_der<P>(private_key: P) -> PrivateKey
pub fn unchecked_from_der<P>(private_key: P) -> PrivateKey
Build PrivateKey
from DER-format. This skips the validation from
from_der
, which isn’t unsafe
, but could fail
nonetheless when used on an Endpoint
.
Trait Implementations§
§impl Clone for PrivateKey
impl Clone for PrivateKey
§fn clone(&self) -> PrivateKey
fn clone(&self) -> PrivateKey
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 more§impl Debug for PrivateKey
impl Debug for PrivateKey
§impl<'de> Deserialize<'de> for PrivateKey
impl<'de> Deserialize<'de> for PrivateKey
§fn deserialize<__D>(
__deserializer: __D
) -> Result<PrivateKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PrivateKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for PrivateKey
impl Hash for PrivateKey
§impl Ord for PrivateKey
impl Ord for PrivateKey
§impl PartialEq for PrivateKey
impl PartialEq for PrivateKey
§fn eq(&self, other: &PrivateKey) -> bool
fn eq(&self, other: &PrivateKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for PrivateKey
impl PartialOrd for PrivateKey
§fn partial_cmp(&self, other: &PrivateKey) -> Option<Ordering>
fn partial_cmp(&self, other: &PrivateKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl Dangerous for PrivateKey
impl Dangerous for PrivateKey
§fn as_ref(private_key: &PrivateKey) -> &[u8] ⓘ
fn as_ref(private_key: &PrivateKey) -> &[u8] ⓘ
§fn serialize<S>(
private_key: &PrivateKey,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
private_key: &PrivateKey,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
§impl TryFrom<Vec<u8>> for PrivateKey
impl TryFrom<Vec<u8>> for PrivateKey
§type Error = PrivateKey
type Error = PrivateKey
The type returned in the event of a conversion error.
§impl Zeroize for PrivateKey
impl Zeroize for PrivateKey
impl Eq for PrivateKey
impl StructuralEq for PrivateKey
impl StructuralPartialEq for PrivateKey
Auto Trait Implementations§
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> CallHasher for T
impl<T> CallHasher for T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.