Trait CrdtDocAdaptor
Source pub trait CrdtDocAdaptor {
// Required methods
fn crdt_type(&self) -> CrdtType;
fn version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<u8>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_ctx<'life0, 'async_trait>(
&'life0 mut self,
ctx: CrdtAdaptorContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_join_ok<'life0, 'async_trait>(
&'life0 mut self,
permission: Permission,
version: Vec<u8>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn apply_update<'life0, 'async_trait>(
&'life0 mut self,
updates: Vec<Vec<u8>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn handle_update_error<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_code: UpdateErrorCode,
_message: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn handle_join_err<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_code: JoinErrorCode,
_message: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_alternative_version<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_current: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Option<Vec<u8>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}