pub trait BeaconChainInfoWrite: BeaconChainInfo + ChainInfoWrite<OwnedBeaconChainBlock> {
// Required method
fn persist_super_segments(
&self,
super_segments: &[SuperSegment],
) -> impl Future<Output = Result<bool, PersistSuperSegmentsError>> + Send;
}Expand description
BeaconChainInfo extension for writing information
Required Methods§
Sourcefn persist_super_segments(
&self,
super_segments: &[SuperSegment],
) -> impl Future<Output = Result<bool, PersistSuperSegmentsError>> + Send
fn persist_super_segments( &self, super_segments: &[SuperSegment], ) -> impl Future<Output = Result<bool, PersistSuperSegmentsError>> + Send
Persist super segments.
Returns Ok(true) if at least one super segment was inserted, Ok(false) if all of them
were already present.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".