pub struct LastWriteWins;Expand description
Last-write-wins conflict resolver: remote events always win.
Trait Implementations§
Source§impl<E> ConflictResolver<E> for LastWriteWinswhere
E: Event,
impl<E> ConflictResolver<E> for LastWriteWinswhere
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,
LastWriteWins: '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,
LastWriteWins: 'async_trait,
Given conflicting local and remote events, produce a resolved set.
Auto Trait Implementations§
impl Freeze for LastWriteWins
impl RefUnwindSafe for LastWriteWins
impl Send for LastWriteWins
impl Sync for LastWriteWins
impl Unpin for LastWriteWins
impl UnsafeUnpin for LastWriteWins
impl UnwindSafe for LastWriteWins
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