pub enum SynchronizerError {
FailedDataWrite(Error),
FailedDataRead(Error),
FailedStateRead(Error),
FailedEntityWrite,
FailedEntityRead,
UninitializedState,
InvalidInstanceVersionParams,
WriteLockConflict,
}
Expand description
SynchronizerError
enumerates all possible errors returned by this library.
These errors mainly represent the failures that might occur during reading or writing
operations in data or state files.
Variants§
FailedDataWrite(Error)
An error occurred while writing to the data file.
FailedDataRead(Error)
An error occurred while reading from the data file.
FailedStateRead(Error)
An error occurred while reading from the state file.
FailedEntityWrite
An error occurred while writing an entity.
FailedEntityRead
An error occurred while reading an entity.
UninitializedState
The state was not properly initialized.
InvalidInstanceVersionParams
The instance version parameters were invalid.
WriteLockConflict
Write locking is enabled and the lock is held by another writer.
Trait Implementations§
Source§impl Debug for SynchronizerError
impl Debug for SynchronizerError
Source§impl Display for SynchronizerError
impl Display for SynchronizerError
Source§impl Error for SynchronizerError
impl Error for SynchronizerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SynchronizerError
impl !RefUnwindSafe for SynchronizerError
impl Send for SynchronizerError
impl Sync for SynchronizerError
impl Unpin for SynchronizerError
impl !UnwindSafe for SynchronizerError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.