pub struct CheckpointClient<C: HttpClient> { /* private fields */ }
Implementations§
Source§impl<C: HttpClient> CheckpointClient<C>
impl<C: HttpClient> CheckpointClient<C>
pub fn new(client: C, state_id: StateId, endpoints: EndpointsConfig) -> Self
pub async fn fetch_finality_checkpoints( &self, network: Network, ) -> Result<DisplayableResult, AppError>
Trait Implementations§
Source§impl<C: Clone + HttpClient> Clone for CheckpointClient<C>
impl<C: Clone + HttpClient> Clone for CheckpointClient<C>
Source§fn clone(&self) -> CheckpointClient<C>
fn clone(&self) -> CheckpointClient<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<C> Freeze for CheckpointClient<C>where
C: Freeze,
impl<C> RefUnwindSafe for CheckpointClient<C>where
C: RefUnwindSafe,
impl<C> Send for CheckpointClient<C>where
C: Send,
impl<C> Sync for CheckpointClient<C>where
C: Sync,
impl<C> Unpin for CheckpointClient<C>where
C: Unpin,
impl<C> UnwindSafe for CheckpointClient<C>where
C: 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