pub struct HTTP_PROVIDER { /* private fields */ }
Methods from Deref<Target = RpcClient<Http>>§
Sourcepub async fn node_client(&self) -> Result<NeoVersion, ProviderError>
pub async fn node_client(&self) -> Result<NeoVersion, ProviderError>
Returns the type of node we’re connected to, while also caching the value for use in other node-specific API calls, such as the get_block_receipts call.
Sourcepub async fn request<T, R>(
&self,
method: &str,
params: T,
) -> Result<R, ProviderError>
pub async fn request<T, R>( &self, method: &str, params: T, ) -> Result<R, ProviderError>
Make an RPC request via the internal connection, and return the result.
Trait Implementations§
Source§impl Deref for HTTP_PROVIDER
impl Deref for HTTP_PROVIDER
impl LazyStatic for HTTP_PROVIDER
Auto Trait Implementations§
impl Freeze for HTTP_PROVIDER
impl RefUnwindSafe for HTTP_PROVIDER
impl Send for HTTP_PROVIDER
impl Sync for HTTP_PROVIDER
impl Unpin for HTTP_PROVIDER
impl UnwindSafe for HTTP_PROVIDER
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more