pub struct SyncManager<T: Transport> { /* private fields */ }Implementations§
Source§impl<T: Transport> SyncManager<T>
impl<T: Transport> SyncManager<T>
pub fn new(transport: T, config: SyncConfig) -> Self
pub fn send_snapshot(&mut self, snapshot: WorldSnapshot) -> Result<()>
pub fn send_delta(&mut self, snapshot: WorldSnapshot) -> Result<()>
pub fn send(&mut self, snapshot: WorldSnapshot) -> Result<()>
pub fn receive(&mut self) -> Result<Option<SyncEvent>>
pub fn request_snapshot(&mut self) -> Result<()>
pub fn send_ack(&mut self, message_id: u64) -> Result<()>
pub fn ping(&mut self) -> Result<()>
pub fn should_sync(&self) -> bool
pub fn get_stats(&self) -> SyncStats
pub fn get_schema_registry(&self) -> &SchemaRegistry
pub fn get_schema_registry_mut(&mut self) -> &mut SchemaRegistry
pub fn set_schema_version(&mut self, version: SchemaVersion)
pub fn get_schema_version(&self) -> SchemaVersion
pub fn reset_delta_compressor(&mut self)
pub fn is_connected(&self) -> bool
pub fn close(&mut self) -> Result<()>
Auto Trait Implementations§
impl<T> Freeze for SyncManager<T>where
T: Freeze,
impl<T> RefUnwindSafe for SyncManager<T>where
T: RefUnwindSafe,
impl<T> Send for SyncManager<T>where
T: Send,
impl<T> Sync for SyncManager<T>where
T: Sync,
impl<T> Unpin for SyncManager<T>where
T: Unpin,
impl<T> UnwindSafe for SyncManager<T>where
T: UnwindSafe,
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