pub enum StoreError {
Unavailable(String),
Invalid(String),
Unsupported(String),
Backend(String),
}Expand description
An error of a read, a graph store operation or a backend outside the append protocol.
Variants§
The store cannot be reached right now (a remote endpoint is down, a file is busy). The operation may succeed when retried.
Invalid(String)
The request is malformed: an invalid entry, a quad the store cannot hold, invalid SPARQL.
Unsupported(String)
The store does not implement this operation or this kind of term.
Backend(String)
Any other failure inside the backend.
Implementations§
Source§impl StoreError
impl StoreError
Sourcepub fn invalid(msg: impl Into<String>) -> Self
pub fn invalid(msg: impl Into<String>) -> Self
An StoreError::Invalid from any message.
Sourcepub fn backend(err: impl Display) -> Self
pub fn backend(err: impl Display) -> Self
A StoreError::Backend from any error.
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
True for StoreError::Unavailable: retrying later may succeed.
Trait Implementations§
Source§impl Clone for StoreError
impl Clone for StoreError
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
impl Eq for StoreError
Source§impl Error for StoreError
impl Error for StoreError
1.30.0 · 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<StoreError> for AppendError
impl From<StoreError> for AppendError
Source§fn from(e: StoreError) -> Self
fn from(e: StoreError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StoreError
impl PartialEq for StoreError
impl StructuralPartialEq for StoreError
Auto Trait Implementations§
impl Forget for StoreError
impl Freeze for StoreError
impl Move for StoreError
impl RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnsafeUnpin for StoreError
impl UnwindSafe for StoreError
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