pub struct Manual<E>where
E: Event,{ /* private fields */ }Expand description
Manual conflict resolver: delegates to a user-provided callback.
Implementations§
Trait Implementations§
Source§impl<E> ConflictResolver<E> for Manual<E>where
E: Event,
impl<E> ConflictResolver<E> for Manual<E>where
E: Event,
Source§fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
local: &'life1 [E],
remote: &'life2 [E],
) -> Pin<Box<dyn Future<Output = Vec<E>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Manual<E>: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
local: &'life1 [E],
remote: &'life2 [E],
) -> Pin<Box<dyn Future<Output = Vec<E>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Manual<E>: 'async_trait,
Given conflicting local and remote events, produce a resolved set.
Auto Trait Implementations§
impl<E> Freeze for Manual<E>
impl<E> !RefUnwindSafe for Manual<E>
impl<E> Send for Manual<E>
impl<E> Sync for Manual<E>
impl<E> Unpin for Manual<E>
impl<E> UnsafeUnpin for Manual<E>
impl<E> !UnwindSafe for Manual<E>
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