Trait serai_processor::networks::Block
source · pub trait Block<N: Network>: Send + Sync + Sized + Clone + Debug {
type Id: 'static + Id;
// Required methods
fn id(&self) -> Self::Id;
fn parent(&self) -> Self::Id;
fn time<'life0, 'life1, 'async_trait>(
&'life0 self,
rpc: &'life1 N,
) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Required Associated Types§
Required Methods§
fn id(&self) -> Self::Id
fn parent(&self) -> Self::Id
sourcefn time<'life0, 'life1, 'async_trait>(
&'life0 self,
rpc: &'life1 N,
) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn time<'life0, 'life1, 'async_trait>(
&'life0 self,
rpc: &'life1 N,
) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The monotonic network time at this block.
This call is presumed to be expensive and should only be called sparingly.
Object Safety§
This trait is not object safe.