Struct bonsaidb::server::fabruic::PrivateKey
pub struct PrivateKey(_);
Expand description
Implementations§
§impl PrivateKey
impl PrivateKey
pub fn from_der<P>(private_key: P) -> Result<PrivateKey, PrivateKey>where
P: Into<Vec<u8, Global>>,
pub fn from_der<P>(private_key: P) -> Result<PrivateKey, PrivateKey>where P: Into<Vec<u8, Global>>,
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) -> PrivateKeywhere
P: Into<Vec<u8, Global>>,
pub fn unchecked_from_der<P>(private_key: P) -> PrivateKeywhere P: Into<Vec<u8, Global>>,
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 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 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<PrivateKey> for PrivateKey
impl PartialEq<PrivateKey> 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<PrivateKey> for PrivateKey
impl PartialOrd<PrivateKey> 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 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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.