pub struct VersionSyncHandle {
last_version_location: Option<StorageLocation>,
next_version_location: Option<StorageLocation>,
version_pending: Arc<(Mutex<bool>, Condvar)>,
_resource_key: String,
}
Fields§
§last_version_location: Option<StorageLocation>
§next_version_location: Option<StorageLocation>
§version_pending: Arc<(Mutex<bool>, Condvar)>
§_resource_key: String
Implementations§
Source§impl VersionSyncHandle
impl VersionSyncHandle
pub fn new( key: &str, last_version_location: Option<StorageLocation>, ) -> VersionSyncHandle
pub fn last_location(&self) -> &Option<StorageLocation>
pub fn start_version(&mut self) -> Result<()>
pub fn advance_next(&mut self, next_version_location: Option<StorageLocation>)
pub fn update_version(&mut self) -> Result<()>
pub fn skip_version(&mut self) -> Result<()>
pub fn revert_version(&mut self) -> Result<()>
pub fn wait_for_version_with_timeout(&self, timeout: Duration) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VersionSyncHandle
impl RefUnwindSafe for VersionSyncHandle
impl Send for VersionSyncHandle
impl Sync for VersionSyncHandle
impl Unpin for VersionSyncHandle
impl UnwindSafe for VersionSyncHandle
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