pub trait BeaconChainInfoWrite: BeaconChainInfo + ChainInfoWrite<OwnedBeaconChainBlock> {
// Required methods
fn persist_super_segment_header(
&self,
super_segment_header: SuperSegmentHeader,
) -> impl Future<Output = Result<bool, PersistSuperSegmentHeadersError>> + Send;
fn persist_super_segment_headers(
&self,
super_segment_headers: Vec<SuperSegmentHeader>,
) -> impl Future<Output = Result<(), PersistSuperSegmentHeadersError>> + Send;
}Expand description
BeaconChainInfo extension for writing information
Required Methods§
Sourcefn persist_super_segment_header(
&self,
super_segment_header: SuperSegmentHeader,
) -> impl Future<Output = Result<bool, PersistSuperSegmentHeadersError>> + Send
fn persist_super_segment_header( &self, super_segment_header: SuperSegmentHeader, ) -> impl Future<Output = Result<bool, PersistSuperSegmentHeadersError>> + Send
Persist a new super segment header.
Returns Ok(true) if the header was inserted, Ok(false) if it was already present.
Sourcefn persist_super_segment_headers(
&self,
super_segment_headers: Vec<SuperSegmentHeader>,
) -> impl Future<Output = Result<(), PersistSuperSegmentHeadersError>> + Send
fn persist_super_segment_headers( &self, super_segment_headers: Vec<SuperSegmentHeader>, ) -> impl Future<Output = Result<(), PersistSuperSegmentHeadersError>> + Send
Persist super segment headers.
Multiple can be inserted for efficiency purposes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.