pub struct MemorySyncCloud { /* private fields */ }Expand description
In-memory implementation of the immutable cloud data-plane contract.
Production transports can replace this implementation while retaining the planner semantics and deterministic simulator tests.
Implementations§
Source§impl MemorySyncCloud
impl MemorySyncCloud
pub fn new() -> Self
pub fn events(&self) -> &[SyncEvent]
pub fn conflicts(&self) -> &[SyncConflict]
pub fn materialize(&self, digest: &str) -> Result<&[u8]>
pub fn canonical_version(&self, path: impl AsRef<Path>) -> Option<&SyncVersion>
pub fn store_blob(&mut self, bytes: &[u8]) -> String
Trait Implementations§
Source§impl Debug for MemorySyncCloud
impl Debug for MemorySyncCloud
Auto Trait Implementations§
impl Freeze for MemorySyncCloud
impl RefUnwindSafe for MemorySyncCloud
impl Send for MemorySyncCloud
impl Sync for MemorySyncCloud
impl Unpin for MemorySyncCloud
impl UnsafeUnpin for MemorySyncCloud
impl UnwindSafe for MemorySyncCloud
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