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
impl Copy for BundleKind
Source§impl Debug for BundleKind
impl Debug for BundleKind
Source§impl Default for BundleKind
impl Default for BundleKind
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
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum 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