#[non_exhaustive]pub enum BrowseError {
Session(ReadError),
Status(u32),
InvalidReference,
InvalidName,
Limit,
NotFound(usize),
Ambiguous(usize),
}Expand description
A local navigation request could not be completed unambiguously.
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.
Session(ReadError)
Transport or pinned session failure.
Status(u32)
One Browse or BrowseNext item had a nonzero status.
InvalidReference
Server returned an incomplete, remote or invalid reference.
InvalidName
A name exceeds the byte limit, contains a control character, or is empty.
Limit
A listing or path exceeded a documented bound.
NotFound(usize)
No exact matching child at this zero-based path step.
Ambiguous(usize)
More than one reference matched this zero-based path step.
Trait Implementations§
Source§impl Debug for BrowseError
impl Debug for BrowseError
Source§impl Display for BrowseError
impl Display for BrowseError
Source§impl Error for BrowseError
impl Error for BrowseError
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 Forget for BrowseError
impl Freeze for BrowseError
impl Move for BrowseError
impl RefUnwindSafe for BrowseError
impl Send for BrowseError
impl Sync for BrowseError
impl Unpin for BrowseError
impl UnsafeUnpin for BrowseError
impl UnwindSafe for BrowseError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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