pub trait LeaseOp {
// Required methods
fn grant_lease<'life0, 'async_trait, R>(
&'life0 self,
req: R,
) -> Pin<Box<dyn Future<Output = Result<LeaseGrantResponse>> + Send + 'async_trait>>
where R: Into<LeaseGrantRequest> + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn revoke<'life0, 'async_trait, R>(
&'life0 self,
req: R,
) -> Pin<Box<dyn Future<Output = Result<LeaseRevokeResponse>> + Send + 'async_trait>>
where R: Into<LeaseRevokeRequest> + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn keep_alive_for<'life0, 'async_trait>(
&'life0 self,
lease_id: LeaseId,
) -> Pin<Box<dyn Future<Output = Result<LeaseKeepAlive>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn time_to_live<'life0, 'async_trait, R>(
&'life0 self,
req: R,
) -> Pin<Box<dyn Future<Output = Result<LeaseTimeToLiveResponse>> + Send + 'async_trait>>
where R: Into<LeaseTimeToLiveRequest> + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn grant_lease<'life0, 'async_trait, R>( &'life0 self, req: R, ) -> Pin<Box<dyn Future<Output = Result<LeaseGrantResponse>> + Send + 'async_trait>>
fn revoke<'life0, 'async_trait, R>( &'life0 self, req: R, ) -> Pin<Box<dyn Future<Output = Result<LeaseRevokeResponse>> + Send + 'async_trait>>
fn keep_alive_for<'life0, 'async_trait>(
&'life0 self,
lease_id: LeaseId,
) -> Pin<Box<dyn Future<Output = Result<LeaseKeepAlive>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn time_to_live<'life0, 'async_trait, R>(
&'life0 self,
req: R,
) -> Pin<Box<dyn Future<Output = Result<LeaseTimeToLiveResponse>> + Send + 'async_trait>>where
R: Into<LeaseTimeToLiveRequest> + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.