#[non_exhaustive]pub enum Error {
SocketFail(Error),
NotInRegister(PathBuf),
NoResponse,
ParsingFailedFileStatus(Error),
ParsingFailedShareStatus(Error),
ParsingFailedMenuItem(Error),
CannotShareFile,
CannotShareRoot,
NotConnected,
NotSynced,
}
Expand description
Extensive error codes for drill down
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SocketFail(Error)
Failed to open the socket to NextCloud
client.
NotInRegister(PathBuf)
The path to operate with is not registered by the NextCloud
client
and therefore not shared or synced.
NoResponse
The API did not respond to a request, but was expected to do so.
ParsingFailedFileStatus(Error)
Unknown file status has been responded.
Unknown share status has been responded.
ParsingFailedMenuItem(Error)
Unknown menu item has been responded.
File can’t be shared.
It is not allowed to share the root directory of your NextCloud
account.
NotConnected
The client is currently offline.
NotSynced
The requested file is not synced yet, and therefore can’t be shared with others.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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