pub struct NodeBlockComponentConfig {
pub block_header: bool,
pub block_with_tx: bool,
pub block_logs: bool,
pub block_state_update: bool,
}Fields§
§block_header: bool§block_with_tx: bool§block_logs: bool§block_state_update: boolImplementations§
Source§impl NodeBlockComponentConfig
impl NodeBlockComponentConfig
pub fn all_disabled() -> Self
pub fn all_enabled() -> Self
pub fn with_block_header(self) -> Self
pub fn with_block_with_tx(self) -> Self
pub fn with_block_logs(self) -> Self
pub fn with_block_state_update(self) -> Self
Trait Implementations§
Source§impl Clone for NodeBlockComponentConfig
impl Clone for NodeBlockComponentConfig
Source§fn clone(&self) -> NodeBlockComponentConfig
fn clone(&self) -> NodeBlockComponentConfig
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 moreAuto Trait Implementations§
impl Freeze for NodeBlockComponentConfig
impl RefUnwindSafe for NodeBlockComponentConfig
impl Send for NodeBlockComponentConfig
impl Sync for NodeBlockComponentConfig
impl Unpin for NodeBlockComponentConfig
impl UnwindSafe for NodeBlockComponentConfig
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)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes