pub struct StaticQuery<N: Network> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<N: Clone + Network> Clone for StaticQuery<N>
impl<N: Clone + Network> Clone for StaticQuery<N>
Source§fn clone(&self) -> StaticQuery<N>
fn clone(&self) -> StaticQuery<N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<N: Network> FromStr for StaticQuery<N>
impl<N: Network> FromStr for StaticQuery<N>
Source§impl<N: Network> QueryTrait<N> for StaticQuery<N>
impl<N: Network> QueryTrait<N> for StaticQuery<N>
Source§fn current_state_root(&self) -> Result<N::StateRoot>
fn current_state_root(&self) -> Result<N::StateRoot>
Returns the current state root.
Source§fn get_state_path_for_commitment(
&self,
commitment: &Field<N>,
) -> Result<StatePath<N>>
fn get_state_path_for_commitment( &self, commitment: &Field<N>, ) -> Result<StatePath<N>>
Returns a state path for the given commitment
.
Source§fn get_state_paths_for_commitments(
&self,
commitments: &[Field<N>],
) -> Result<Vec<StatePath<N>>>
fn get_state_paths_for_commitments( &self, commitments: &[Field<N>], ) -> Result<Vec<StatePath<N>>>
Returns a list of state paths for the given list of commitment
s.
Source§fn current_block_height(&self) -> Result<u32>
fn current_block_height(&self) -> Result<u32>
Returns the current block height
Auto Trait Implementations§
impl<N> Freeze for StaticQuery<N>
impl<N> RefUnwindSafe for StaticQuery<N>where
<N as Network>::StateRoot: RefUnwindSafe,
<N as Environment>::Field: RefUnwindSafe,
<N as Network>::BlockHash: RefUnwindSafe,
<N as Network>::TransactionID: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for StaticQuery<N>
impl<N> Sync for StaticQuery<N>
impl<N> Unpin for StaticQuery<N>
impl<N> UnwindSafe for StaticQuery<N>where
<N as Network>::StateRoot: UnwindSafe,
<N as Environment>::Field: UnwindSafe,
<N as Network>::BlockHash: UnwindSafe,
<N as Network>::TransactionID: UnwindSafe,
N: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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