pub enum DeviceOnlyError {
RepeatedFile {
file: FileId,
},
Path(CopyPathError),
Database(DbError),
Download {
file: FileId,
error: FileReadError,
},
Disk(FileError),
Cancelled,
Cleanup {
error: Box<DeviceOnlyError>,
cleanup: DbError,
},
Bug(Bug),
}Expand description
Why no file of a call was made device-only (E8). Whatever the call made is removed before it returns, or, if removing it failed too, at the next open.
Variants§
RepeatedFile
The call names one file twice.
Path(CopyPathError)
A copy can’t go where the app named it.
Database(DbError)
This device may not make a file device-only, or the write switching
them failed: no record of the file here (FileAbsent), as for a
file of a circle this member was never in; one not in the cloud
(NotInCloud); an app file (NamespaceKind); a file of a circle
this member has left (NotInCircle); or another member’s row of an
owner_only table referencing it (NotOwner).
Download
Downloading a file failed.
Disk(FileError)
Writing a folder or a copy failed.
Cancelled
The app cancelled the call before its files switched.
Cleanup
Removing what the call made failed too. What stays is recorded, and the next open removes it.
Bug(Bug)
The call’s work panicked: a bug, which the caller reports (E15).
Trait Implementations§
Source§impl CarriesBug for DeviceOnlyError
impl CarriesBug for DeviceOnlyError
Source§impl Debug for DeviceOnlyError
impl Debug for DeviceOnlyError
Source§impl Display for DeviceOnlyError
impl Display for DeviceOnlyError
Source§impl Error for DeviceOnlyError
impl Error for DeviceOnlyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Bug> for DeviceOnlyError
impl From<Bug> for DeviceOnlyError
Source§fn from(source: Bug) -> DeviceOnlyError
fn from(source: Bug) -> DeviceOnlyError
Source§impl From<CopyPathError> for DeviceOnlyError
impl From<CopyPathError> for DeviceOnlyError
Source§fn from(error: CopyPathError) -> DeviceOnlyError
fn from(error: CopyPathError) -> DeviceOnlyError
Source§impl From<DbError> for DeviceOnlyError
impl From<DbError> for DeviceOnlyError
Source§fn from(error: DbError) -> DeviceOnlyError
fn from(error: DbError) -> DeviceOnlyError
Source§impl From<FileError> for DeviceOnlyError
impl From<FileError> for DeviceOnlyError
Source§fn from(error: FileError) -> DeviceOnlyError
fn from(error: FileError) -> DeviceOnlyError
Auto Trait Implementations§
impl Freeze for DeviceOnlyError
impl !RefUnwindSafe for DeviceOnlyError
impl Send for DeviceOnlyError
impl Sync for DeviceOnlyError
impl Unpin for DeviceOnlyError
impl UnsafeUnpin for DeviceOnlyError
impl !UnwindSafe for DeviceOnlyError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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