pub enum PathResolveError {
Invalid(&'static str),
Codec(PathCodecError),
Auth(AuthError),
}Expand description
Error resolving a client-supplied (shadow) path to a real storage path.
Returned by ServerState::resolve_client_path; map it to HTTP as:
Variants§
Invalid(&'static str)
The shadow path failed basic shape validation (absolute, ..,
NUL byte, empty segments).
Codec(PathCodecError)
The codec could not decode the shadow (unknown version, bad base64, tampered ciphertext, unmapped namespace).
Auth(AuthError)
The decoded real path is not authorized for this token.
Trait Implementations§
Source§impl Debug for PathResolveError
impl Debug for PathResolveError
Source§impl Display for PathResolveError
impl Display for PathResolveError
Source§impl Error for PathResolveError
impl Error for PathResolveError
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<AuthError> for PathResolveError
impl From<AuthError> for PathResolveError
Source§impl From<PathCodecError> for PathResolveError
impl From<PathCodecError> for PathResolveError
Source§fn from(source: PathCodecError) -> Self
fn from(source: PathCodecError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PathResolveError
impl RefUnwindSafe for PathResolveError
impl Send for PathResolveError
impl Sync for PathResolveError
impl Unpin for PathResolveError
impl UnsafeUnpin for PathResolveError
impl UnwindSafe for PathResolveError
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