pub struct GatewayClient { /* private fields */ }Expand description
The client to the gateway itself, i.e. requests terminate at the gateway.
Implementations§
Trait Implementations§
Source§impl AppBackendApi for GatewayClient
impl AppBackendApi for GatewayClient
Source§async fn signup_v2(
&self,
signed_req: &Signed<&UserSignupRequestWire>,
) -> Result<Empty, BackendApiError>
async fn signup_v2( &self, signed_req: &Signed<&UserSignupRequestWire>, ) -> Result<Empty, BackendApiError>
POST /app/v2/signup
ed25519::Signed<UserSignupRequestWire> ->
EmptySource§async fn signup_v1(
&self,
_signed_req: &Signed<&UserSignupRequestWireV1>,
) -> Result<Empty, BackendApiError>
async fn signup_v1( &self, _signed_req: &Signed<&UserSignupRequestWireV1>, ) -> Result<Empty, BackendApiError>
👎Deprecated:
Use the signup_v2 API instead
POST /app/v1/signup
ed25519::Signed<UserSignupRequestWireV1> ->
EmptySource§async fn enclaves_to_provision(
&self,
req: &EnclavesToProvisionRequest,
auth: BearerAuthToken,
) -> Result<EnclavesToProvision, BackendApiError>
async fn enclaves_to_provision( &self, req: &EnclavesToProvisionRequest, auth: BearerAuthToken, ) -> Result<EnclavesToProvision, BackendApiError>
Query which node enclaves the user needs to provision to. Read more
Source§impl AppGatewayApi for GatewayClient
impl AppGatewayApi for GatewayClient
Source§async fn get_fiat_rates(&self) -> Result<FiatRates, GatewayApiError>
async fn get_fiat_rates(&self) -> Result<FiatRates, GatewayApiError>
Source§async fn latest_release(&self) -> Result<NodeEnclave, GatewayApiError>
async fn latest_release(&self) -> Result<NodeEnclave, GatewayApiError>
👎Deprecated:
since app-v0.8.1: Use current_releases() instead
Get the measurement and semver version of the latest node release. Read more
Source§async fn current_releases(&self) -> Result<CurrentEnclaves, GatewayApiError>
async fn current_releases(&self) -> Result<CurrentEnclaves, GatewayApiError>
👎Deprecated:
since app-v0.8.8: Use current_enclaves() instead
Get the measurements, enclave machine id and versions of all
current node enclaves. Read more
Source§async fn current_enclaves(&self) -> Result<CurrentEnclaves, GatewayApiError>
async fn current_enclaves(&self) -> Result<CurrentEnclaves, GatewayApiError>
Get the measurements, enclave machine id and versions of all
current node enclaves. Read more
Source§impl BearerAuthBackendApi for GatewayClient
impl BearerAuthBackendApi for GatewayClient
Source§fn bearer_auth<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
signed_req: &'life1 Signed<&'life2 BearerAuthRequestWire>,
) -> Pin<Box<dyn Future<Output = Result<BearerAuthResponse, BackendApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn bearer_auth<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
signed_req: &'life1 Signed<&'life2 BearerAuthRequestWire>,
) -> Pin<Box<dyn Future<Output = Result<BearerAuthResponse, BackendApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl Clone for GatewayClient
impl Clone for GatewayClient
Source§fn clone(&self) -> GatewayClient
fn clone(&self) -> GatewayClient
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 moreAuto Trait Implementations§
impl Freeze for GatewayClient
impl !RefUnwindSafe for GatewayClient
impl Send for GatewayClient
impl Sync for GatewayClient
impl Unpin for GatewayClient
impl UnsafeUnpin for GatewayClient
impl !UnwindSafe for GatewayClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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