pub struct EmptyDataProvider;Expand description
No-op data provider — all methods return None.
Trait Implementations§
Source§impl DataProvider for EmptyDataProvider
impl DataProvider for EmptyDataProvider
Source§fn resolve_token(
&self,
chain_id: u64,
address: &str,
) -> Pin<Box<dyn Future<Output = Option<TokenMeta>> + Send + '_>>
fn resolve_token( &self, chain_id: u64, address: &str, ) -> Pin<Box<dyn Future<Output = Option<TokenMeta>> + Send + '_>>
Resolve token metadata (symbol, decimals, name) for a given chain and address.
Source§fn resolve_ens_name(
&self,
address: &str,
chain_id: u64,
types: Option<&[String]>,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + '_>>
fn resolve_ens_name( &self, address: &str, chain_id: u64, types: Option<&[String]>, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + '_>>
Resolve an ENS name for an address. Read more
Source§fn resolve_local_name(
&self,
address: &str,
chain_id: u64,
types: Option<&[String]>,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + '_>>
fn resolve_local_name( &self, address: &str, chain_id: u64, types: Option<&[String]>, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + '_>>
Resolve a local/contact name for an address. Read more
Auto Trait Implementations§
impl Freeze for EmptyDataProvider
impl RefUnwindSafe for EmptyDataProvider
impl Send for EmptyDataProvider
impl Sync for EmptyDataProvider
impl Unpin for EmptyDataProvider
impl UnsafeUnpin for EmptyDataProvider
impl UnwindSafe for EmptyDataProvider
Blanket Implementations§
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