pub struct SyncEngine { /* private fields */ }Expand description
Motor de sincronizacion CRDT.
Implementations§
Source§impl SyncEngine
impl SyncEngine
Sourcepub async fn sync_with_peer(&self, peer: &Peer) -> Result<SyncResult>
pub async fn sync_with_peer(&self, peer: &Peer) -> Result<SyncResult>
Sincroniza con un peer especifico.
Sourcepub async fn sync_auto(&self, project: &str) -> Result<Vec<SyncResult>>
pub async fn sync_auto(&self, project: &str) -> Result<Vec<SyncResult>>
Sincroniza automaticamente todos los peers auto_sync de un proyecto.
Sourcepub fn export_project(
&self,
project: &str,
output: Option<PathBuf>,
) -> Result<ExportStats>
pub fn export_project( &self, project: &str, output: Option<PathBuf>, ) -> Result<ExportStats>
Exporta un proyecto a archivo.
Sourcepub fn build_hello(&self, project: &str) -> Result<SyncHello>
pub fn build_hello(&self, project: &str) -> Result<SyncHello>
Construye mensaje de saludo.
Sourcepub fn apply_response(&self, response: &SyncResponse) -> Result<ApplyStats>
pub fn apply_response(&self, response: &SyncResponse) -> Result<ApplyStats>
Aplica una respuesta de sync entrante.
Sourcepub fn build_response(&self, request: &SyncRequest) -> Result<SyncResponse>
pub fn build_response(&self, request: &SyncRequest) -> Result<SyncResponse>
Construye respuesta a una solicitud de sync (placeholder).
Auto Trait Implementations§
impl Freeze for SyncEngine
impl RefUnwindSafe for SyncEngine
impl Send for SyncEngine
impl Sync for SyncEngine
impl Unpin for SyncEngine
impl UnsafeUnpin for SyncEngine
impl UnwindSafe for SyncEngine
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more