pub enum TemplateBuildMode {
Standard,
Infallible,
}Expand description
Block template build mode
Variants§
Standard
Block template build can possibly fail if TemplateTransactionSelector::is_successful deems the operation unsuccessful.
In such a case, the build fails with BlockRuleError::InvalidTransactionsInNewBlock.
Infallible
Block template build always succeeds. The built block contains only the validated transactions.
Trait Implementations§
Source§impl Clone for TemplateBuildMode
impl Clone for TemplateBuildMode
Source§fn clone(&self) -> TemplateBuildMode
fn clone(&self) -> TemplateBuildMode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemplateBuildMode
impl Debug for TemplateBuildMode
impl Copy for TemplateBuildMode
Auto Trait Implementations§
impl Freeze for TemplateBuildMode
impl RefUnwindSafe for TemplateBuildMode
impl Send for TemplateBuildMode
impl Sync for TemplateBuildMode
impl Unpin for TemplateBuildMode
impl UnwindSafe for TemplateBuildMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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