Trait OmmersProvider
pub trait OmmersProvider:
HeaderProvider
+ Send
+ Sync {
// Required method
fn ommers(
&self,
id: HashOrNumber,
) -> Result<Option<Vec<Self::Header>>, ProviderError>;
}
Expand description
Client trait for fetching ommers.
Required Methods§
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.
Implementations on Foreign Types§
§impl<T> OmmersProvider for &Twhere
T: OmmersProvider,
impl<T> OmmersProvider for &Twhere
T: OmmersProvider,
fn ommers( &self, id: HashOrNumber, ) -> Result<Option<Vec<<&T as HeaderProvider>::Header>>, ProviderError>
§impl<T> OmmersProvider for Arc<T>where
T: OmmersProvider,
impl<T> OmmersProvider for Arc<T>where
T: OmmersProvider,
fn ommers( &self, id: HashOrNumber, ) -> Result<Option<Vec<<Arc<T> as HeaderProvider>::Header>>, ProviderError>
Implementors§
impl OmmersProvider for MockEthProvider
Available on crate feature
test-utils
only.