pub struct ViewFunction { /* private fields */ }Trait Implementations§
source§impl ProcessQuery for ViewFunction
impl ProcessQuery for ViewFunction
source§type Method = RpcQueryRequest
type Method = RpcQueryRequest
Method for doing the internal RPC request to the network of our choosing.
source§type Output = ViewResult
type Output = ViewResult
Expected output after performing a query.
source§fn into_request(self, block_reference: BlockReference) -> Result<Self::Method>
fn into_request(self, block_reference: BlockReference) -> Result<Self::Method>
Convert into the Request object that is required to perform the RPC request.
source§fn from_response(resp: RpcQueryResponse) -> Result<Self::Output>
fn from_response(resp: RpcQueryResponse) -> Result<Self::Output>
Convert the response from the RPC request to a type of our choosing.
Auto Trait Implementations§
impl Freeze for ViewFunction
impl !RefUnwindSafe for ViewFunction
impl Send for ViewFunction
impl Sync for ViewFunction
impl Unpin for ViewFunction
impl !UnwindSafe for ViewFunction
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
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