pub enum BundleKind {
Blocks,
AccountState,
}Expand description
What a bundle build produces.
Variants§
Blocks
The block bundle a session replays transactions from.
AccountState
An account-state bundle covering exactly the requested range, which later sessions replay instead of executing transactions. Builds the block bundle it needs first.
Implementations§
Source§impl BundleKind
impl BundleKind
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Stable string form matching the serde snake_case wire representation.
Sourcepub fn from_str_opt(value: &str) -> Option<Self>
pub fn from_str_opt(value: &str) -> Option<Self>
Inverse of Self::as_str; returns None for an unrecognized value.
Trait Implementations§
Source§impl Clone for BundleKind
impl Clone for BundleKind
Source§fn clone(&self) -> BundleKind
fn clone(&self) -> BundleKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BundleKind
Source§impl Debug for BundleKind
impl Debug for BundleKind
Source§impl Default for BundleKind
impl Default for BundleKind
Source§fn default() -> BundleKind
fn default() -> BundleKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BundleKind
impl<'de> Deserialize<'de> for BundleKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BundleKind
Spelled for the reader, not the wire: blocks shows as transactions.
Use BundleKind::as_str where the wire spelling is required.
impl Display for BundleKind
Spelled for the reader, not the wire: blocks shows as transactions.
Use BundleKind::as_str where the wire spelling is required.
impl Eq for BundleKind
Source§impl Ord for BundleKind
impl Ord for BundleKind
Source§fn cmp(&self, other: &BundleKind) -> Ordering
fn cmp(&self, other: &BundleKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BundleKind
impl PartialEq for BundleKind
Source§impl PartialOrd for BundleKind
impl PartialOrd for BundleKind
Source§impl Serialize for BundleKind
impl Serialize for BundleKind
impl StructuralPartialEq for BundleKind
Auto Trait Implementations§
impl Freeze for BundleKind
impl RefUnwindSafe for BundleKind
impl Send for BundleKind
impl Sync for BundleKind
impl Unpin for BundleKind
impl UnsafeUnpin for BundleKind
impl UnwindSafe for BundleKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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