pub struct HyperSyncSourceFactory { /* private fields */ }Expand description
HyperSync source factory using one Envio API token across configured chains.
Implementations§
Source§impl HyperSyncSourceFactory
impl HyperSyncSourceFactory
Sourcepub fn new(api_token: impl Into<String>) -> Self
pub fn new(api_token: impl Into<String>) -> Self
Store the API token used when constructing per-chain clients.
Sourcepub fn with_hash_verified_headers_for_chain(self, chain_id: u64) -> Self
pub fn with_hash_verified_headers_for_chain(self, chain_id: u64) -> Self
Opt a chain into full headers after independently proving the provider schema is complete.
The current HyperSync schema omits requests_hash, so this must not be
enabled for post-Prague Ethereum blocks.
Trait Implementations§
Source§impl ChainDataSourceFactory for HyperSyncSourceFactory
impl ChainDataSourceFactory for HyperSyncSourceFactory
Source§type Source = HyperSyncDataSource
type Source = HyperSyncDataSource
Source implementation produced for each managed session.
Source§fn create(&self, chain_id: u64) -> Result<Self::Source, SourceError>
fn create(&self, chain_id: u64) -> Result<Self::Source, SourceError>
Create a source for one EVM chain. Read more
Source§fn supports_full_headers(&self, chain_id: u64) -> bool
fn supports_full_headers(&self, chain_id: u64) -> bool
Whether this factory can reconstruct and hash-verify complete headers on a chain.
Source§fn supports_full_headers_on_any_chain(&self) -> bool
fn supports_full_headers_on_any_chain(&self) -> bool
Whether any configured chain supports complete hash-verified headers.
Auto Trait Implementations§
impl Freeze for HyperSyncSourceFactory
impl RefUnwindSafe for HyperSyncSourceFactory
impl Send for HyperSyncSourceFactory
impl Sync for HyperSyncSourceFactory
impl Unpin for HyperSyncSourceFactory
impl UnsafeUnpin for HyperSyncSourceFactory
impl UnwindSafe for HyperSyncSourceFactory
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request