pub enum InodeError {
Show 27 variants
ClientError {
source: Arc<Error>,
metadata: Box<ErrorMetadata>,
},
FileDoesNotExist(String, InodeErrorInfo),
InodeDoesNotExist(InodeNo),
InvalidFileName(OsString),
NotADirectory(InodeErrorInfo),
IsDirectory(InodeErrorInfo),
FileAlreadyExists(InodeErrorInfo),
InodeNotWritable(InodeErrorInfo),
InodeInvalidWriteStatus(InodeErrorInfo),
InodeAlreadyWriting(InodeErrorInfo),
InodeNotReadableWhileWriting(InodeErrorInfo),
InodeNotWritableWhileReading(InodeErrorInfo),
CannotRemoveRemoteDirectory(InodeErrorInfo),
DirectoryNotEmpty(InodeErrorInfo),
UnlinkNotPermittedWhileWriting(InodeErrorInfo),
CannotRenameDirectory(InodeErrorInfo),
RenameNotPermittedWhileWriting(InodeErrorInfo),
RenameDestinationExists {
dest_key: String,
src_inode: InodeErrorInfo,
},
RenameNotSupported(),
NameTooLong(String),
CorruptedMetadata(InodeErrorInfo),
SetAttrNotPermittedOnRemoteInode(InodeErrorInfo),
StaleInode {
remote_key: String,
old_inode: InodeErrorInfo,
new_inode: InodeErrorInfo,
},
OperationNotSupportedOnSyntheticInode {
ino: InodeNo,
},
OutOfOrderReadDir {
expected: i64,
actual: i64,
fh: u64,
},
NoSuchDirHandle {
fh: u64,
},
FlexibleRetrievalObjectNotAccessible(InodeErrorInfo),
}Variants§
ClientError
Avoid constructing this directly, but use InodeError::client_error instead
FileDoesNotExist(String, InodeErrorInfo)
InodeDoesNotExist(InodeNo)
InvalidFileName(OsString)
NotADirectory(InodeErrorInfo)
IsDirectory(InodeErrorInfo)
FileAlreadyExists(InodeErrorInfo)
InodeNotWritable(InodeErrorInfo)
InodeInvalidWriteStatus(InodeErrorInfo)
InodeAlreadyWriting(InodeErrorInfo)
InodeNotReadableWhileWriting(InodeErrorInfo)
InodeNotWritableWhileReading(InodeErrorInfo)
CannotRemoveRemoteDirectory(InodeErrorInfo)
DirectoryNotEmpty(InodeErrorInfo)
UnlinkNotPermittedWhileWriting(InodeErrorInfo)
CannotRenameDirectory(InodeErrorInfo)
RenameNotPermittedWhileWriting(InodeErrorInfo)
RenameDestinationExists
RenameNotSupported()
NameTooLong(String)
CorruptedMetadata(InodeErrorInfo)
SetAttrNotPermittedOnRemoteInode(InodeErrorInfo)
StaleInode
OperationNotSupportedOnSyntheticInode
OutOfOrderReadDir
NoSuchDirHandle
FlexibleRetrievalObjectNotAccessible(InodeErrorInfo)
Implementations§
Source§impl InodeError
impl InodeError
Sourcepub fn client_error<E>(
err: E,
context: &'static str,
bucket: &str,
key: &str,
) -> Self
pub fn client_error<E>( err: E, context: &'static str, bucket: &str, key: &str, ) -> Self
Constructs InodeError::ClientError enriching metadata with error_code, bucket and key.
Detailed information about an error is gathered in different frames of the call stack. To make it manageable the idea is to enrich metadata with error_code, bucket and key on the construction of mountpoint crate’s errors, i.e. InodeError, PrefetchReadError and UploadPutError.
pub fn upload_error<E>(err: UploadError<E>, key: S3Location) -> Self
Source§impl InodeError
impl InodeError
pub fn meta(&self) -> ErrorMetadata
Trait Implementations§
Source§impl Clone for InodeError
impl Clone for InodeError
Source§fn clone(&self) -> InodeError
fn clone(&self) -> InodeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InodeError
impl Debug for InodeError
Source§impl Display for InodeError
impl Display for InodeError
Source§impl Error for InodeError
impl Error for InodeError
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()
Source§impl From<InodeError> for Error
impl From<InodeError> for Error
Source§fn from(err: InodeError) -> Self
fn from(err: InodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InodeError
impl RefUnwindSafe for InodeError
impl Send for InodeError
impl Sync for InodeError
impl Unpin for InodeError
impl UnsafeUnpin for InodeError
impl UnwindSafe for InodeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.