pub enum MithrilEvent {
SnapshotDownloadStarted {
digest: String,
download_id: String,
size: u64,
},
SnapshotDownloadProgress {
download_id: String,
downloaded_bytes: u64,
size: u64,
},
SnapshotDownloadCompleted {
download_id: String,
},
SnapshotAncillaryDownloadStarted {
download_id: String,
size: u64,
},
SnapshotAncillaryDownloadProgress {
download_id: String,
downloaded_bytes: u64,
size: u64,
},
SnapshotAncillaryDownloadCompleted {
download_id: String,
},
CardanoDatabase(MithrilEventCardanoDatabase),
CertificateChainValidationStarted {
certificate_chain_validation_id: String,
},
CertificateValidated {
certificate_chain_validation_id: String,
certificate_hash: String,
},
CertificateFetchedFromCache {
certificate_chain_validation_id: String,
certificate_hash: String,
},
CertificateChainValidated {
certificate_chain_validation_id: String,
},
}
Expand description
Event that can be reported by a FeedbackReceiver.
Variants§
SnapshotDownloadStarted
A snapshot download has started
Fields
SnapshotDownloadProgress
A snapshot download is in progress
Fields
SnapshotDownloadCompleted
A snapshot download has completed
SnapshotAncillaryDownloadStarted
A snapshot ancillary download has started
Fields
SnapshotAncillaryDownloadProgress
A snapshot ancillary download is in progress
Fields
SnapshotAncillaryDownloadCompleted
A snapshot ancillary download has completed
CardanoDatabase(MithrilEventCardanoDatabase)
Cardano database related events
CertificateChainValidationStarted
A certificate chain validation has started
Fields
CertificateValidated
An individual certificate of a chain have been validated.
Fields
CertificateFetchedFromCache
An individual certificate of a chain have been fetched from the cache.
Fields
CertificateChainValidated
The whole certificate chain is valid.
Implementations§
Source§impl MithrilEvent
impl MithrilEvent
Sourcepub fn new_snapshot_download_id() -> String
pub fn new_snapshot_download_id() -> String
Generate a random unique identifier to identify a snapshot download
Sourcepub fn new_cardano_database_download_id() -> String
pub fn new_cardano_database_download_id() -> String
Generate a random unique identifier to identify a Cardano download
Sourcepub fn new_certificate_chain_validation_id() -> String
pub fn new_certificate_chain_validation_id() -> String
Generate a random unique identifier to identify a certificate chain validation
Trait Implementations§
Source§impl Clone for MithrilEvent
impl Clone for MithrilEvent
Source§fn clone(&self) -> MithrilEvent
fn clone(&self) -> MithrilEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MithrilEvent
impl Debug for MithrilEvent
Source§impl Display for MithrilEvent
impl Display for MithrilEvent
Source§impl PartialEq for MithrilEvent
impl PartialEq for MithrilEvent
Source§impl Serialize for MithrilEvent
impl Serialize for MithrilEvent
impl Eq for MithrilEvent
impl StructuralPartialEq for MithrilEvent
Auto Trait Implementations§
impl Freeze for MithrilEvent
impl RefUnwindSafe for MithrilEvent
impl Send for MithrilEvent
impl Sync for MithrilEvent
impl Unpin for MithrilEvent
impl UnwindSafe for MithrilEvent
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
§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
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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 moreSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.