pub trait SnapTunControlPlaneClient: Send + Sync {
// Required method
fn register_identity<'life0, 'async_trait>(
&'life0 self,
identity: PublicKey,
psk_share: Option<[u8; 32]>,
) -> Pin<Box<dyn Future<Output = Result<Option<[u8; 32]>, CrpcClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn register_identity_with_retries<'life0, 'async_trait>(
&'life0 self,
identity: PublicKey,
psk_share: Option<[u8; 32]>,
backoff: ExponentialBackoff,
max_attempts: u32,
) -> Pin<Box<dyn Future<Output = Result<Option<[u8; 32]>, CrpcClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Trait for a control plane client.
Required Methods§
Sourcefn register_identity<'life0, 'async_trait>(
&'life0 self,
identity: PublicKey,
psk_share: Option<[u8; 32]>,
) -> Pin<Box<dyn Future<Output = Result<Option<[u8; 32]>, CrpcClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_identity<'life0, 'async_trait>(
&'life0 self,
identity: PublicKey,
psk_share: Option<[u8; 32]>,
) -> Pin<Box<dyn Future<Output = Result<Option<[u8; 32]>, CrpcClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Register an identity with the control plane.
Provided Methods§
Sourcefn register_identity_with_retries<'life0, 'async_trait>(
&'life0 self,
identity: PublicKey,
psk_share: Option<[u8; 32]>,
backoff: ExponentialBackoff,
max_attempts: u32,
) -> Pin<Box<dyn Future<Output = Result<Option<[u8; 32]>, CrpcClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_identity_with_retries<'life0, 'async_trait>(
&'life0 self,
identity: PublicKey,
psk_share: Option<[u8; 32]>,
backoff: ExponentialBackoff,
max_attempts: u32,
) -> Pin<Box<dyn Future<Output = Result<Option<[u8; 32]>, CrpcClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Register an identity with the control plane with retries.