pub struct ValidatedEd25519Cert {
cert: Ed25519Cert,
raw: Vec<u8>,
}
Expand description
A well-signed and timely EncodedEd25519Cert
.
Fields§
§cert: Ed25519Cert
The parsed, validated cert.
raw: Vec<u8>
The raw, unparsed cert.
Implementations§
Source§impl ValidatedEd25519Cert
impl ValidatedEd25519Cert
Sourcepub fn subject_key(&self) -> StdResult<&Ed25519Identity, InvalidCertError>
pub fn subject_key(&self) -> StdResult<&Ed25519Identity, InvalidCertError>
Return the subject key of this certificate.
Sourcepub fn into_encoded(self) -> EncodedEd25519Cert
pub fn into_encoded(self) -> EncodedEd25519Cert
Return the encoded representation of this cert as a EncodedEd25519Cert
.
Trait Implementations§
Source§impl AsRef<Ed25519Cert> for ValidatedEd25519Cert
impl AsRef<Ed25519Cert> for ValidatedEd25519Cert
Source§fn as_ref(&self) -> &Ed25519Cert
fn as_ref(&self) -> &Ed25519Cert
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ValidatedEd25519Cert
impl Clone for ValidatedEd25519Cert
Source§fn clone(&self) -> ValidatedEd25519Cert
fn clone(&self) -> ValidatedEd25519Cert
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 Debug for ValidatedEd25519Cert
impl Debug for ValidatedEd25519Cert
Source§impl Timebound<ValidatedEd25519Cert> for SigCheckedEd25519Cert
impl Timebound<ValidatedEd25519Cert> for SigCheckedEd25519Cert
Source§type Error = TimeValidityError
type Error = TimeValidityError
An error type that’s returned when the object is not timely.
Source§fn is_valid_at(&self, t: &SystemTime) -> StdResult<(), Self::Error>
fn is_valid_at(&self, t: &SystemTime) -> StdResult<(), Self::Error>
Check whether this object is valid at a given time. Read more
Source§fn dangerously_assume_timely(self) -> ValidatedEd25519Cert
fn dangerously_assume_timely(self) -> ValidatedEd25519Cert
Return the underlying object without checking whether it’s valid.
Source§fn check_valid_at(self, t: &SystemTime) -> Result<T, Self::Error>
fn check_valid_at(self, t: &SystemTime) -> Result<T, Self::Error>
Unwrap this Timebound object if it is valid at a given time.
Source§fn check_valid_now(self) -> Result<T, Self::Error>
fn check_valid_now(self) -> Result<T, Self::Error>
Unwrap this Timebound object if it is valid now.
Source§fn check_valid_at_opt(self, t: Option<SystemTime>) -> Result<T, Self::Error>
fn check_valid_at_opt(self, t: Option<SystemTime>) -> Result<T, Self::Error>
Unwrap this object if it is valid at the provided time t.
If no time is provided, check the object at the current time.
Auto Trait Implementations§
impl Freeze for ValidatedEd25519Cert
impl RefUnwindSafe for ValidatedEd25519Cert
impl Send for ValidatedEd25519Cert
impl Sync for ValidatedEd25519Cert
impl Unpin for ValidatedEd25519Cert
impl UnwindSafe for ValidatedEd25519Cert
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more