pub struct CCPRpcHttpClient { /* private fields */ }Implementations§
Source§impl CCPRpcHttpClient
impl CCPRpcHttpClient
pub async fn new(endpoint_url: String) -> Result<Self, ClientError>
pub async fn with_timeout( endpoint_url: String, request_timeout: Duration, ) -> Result<Self, ClientError>
pub fn from_http_client(client: HttpClient) -> Self
pub async fn on_active_commitment( &self, global_nonce: GlobalNonce, difficulty: Difficulty, cu_allocation: HashMap<PhysicalCoreId, CUID>, ) -> Result<(), ClientError>
pub async fn on_no_active_commitment(&self) -> Result<(), ClientError>
pub async fn get_proofs_after( &self, last_known_proofs: HashMap<CUID, ProofIdx>, limit: usize, ) -> Result<Vec<BatchResponse>, ClientError>
pub async fn get_batch_proofs_after( &self, reqs: HashMap<CUID, BatchRequest>, min_batch_count: usize, max_batch_count: usize, ) -> Result<Vec<BatchResponse>, ClientError>
pub async fn realloc_utility_cores( &self, utility_core_ids: Vec<LogicalCoreId>, ) -> Result<(), ClientError>
Auto Trait Implementations§
impl Freeze for CCPRpcHttpClient
impl !RefUnwindSafe for CCPRpcHttpClient
impl Send for CCPRpcHttpClient
impl Sync for CCPRpcHttpClient
impl Unpin for CCPRpcHttpClient
impl !UnwindSafe for CCPRpcHttpClient
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