pub struct HttpUpstream { /* private fields */ }Implementations§
Source§impl HttpUpstream
impl HttpUpstream
Trait Implementations§
Source§impl Clone for HttpUpstream
impl Clone for HttpUpstream
Source§fn clone(&self) -> HttpUpstream
fn clone(&self) -> HttpUpstream
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpUpstream
impl Debug for HttpUpstream
Source§impl UpstreamClient for HttpUpstream
impl UpstreamClient for HttpUpstream
Source§fn rpc_call<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: Value,
) -> Pin<Box<dyn Future<Output = UpstreamResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn rpc_call<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: Value,
) -> Pin<Box<dyn Future<Output = UpstreamResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Invoke an arbitrary JSON-RPC method and return the
result
field as raw JSON bytes. Higher layers deserialize per-method.Source§fn get_account<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
) -> Pin<Box<dyn Future<Output = UpstreamResult<Option<AccountData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_account<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
) -> Pin<Box<dyn Future<Output = UpstreamResult<Option<AccountData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Convenience: read an account by base58 pubkey. Network impl
goes through
getAccountInfo; fixture impl reads from its map.
Returns Ok(None) when the account doesn’t exist; Err for
transport failure.Auto Trait Implementations§
impl Freeze for HttpUpstream
impl !RefUnwindSafe for HttpUpstream
impl Send for HttpUpstream
impl Sync for HttpUpstream
impl Unpin for HttpUpstream
impl UnsafeUnpin for HttpUpstream
impl !UnwindSafe for HttpUpstream
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