pub enum XurlError {
Show 18 variants
InvalidUri(String),
UnsupportedScheme(String),
InvalidSessionId(String),
InvalidMode(String),
UnsupportedSubagentProvider(String),
UnsupportedProviderWrite(String),
CommandNotFound {
command: String,
},
CommandFailed {
command: String,
code: Option<i32>,
stderr: String,
},
WriteProtocol(String),
Serialization(String),
HomeDirectoryNotFound,
ThreadNotFound {
provider: String,
session_id: String,
searched_roots: Vec<PathBuf>,
},
EntryNotFound {
provider: String,
session_id: String,
entry_id: String,
},
EmptyThreadFile {
path: PathBuf,
},
NonUtf8ThreadFile {
path: PathBuf,
},
Io {
path: PathBuf,
source: Error,
},
Sqlite {
path: PathBuf,
source: Error,
},
InvalidJsonLine {
path: PathBuf,
line: usize,
source: Error,
},
}Variants§
InvalidUri(String)
UnsupportedScheme(String)
InvalidSessionId(String)
InvalidMode(String)
UnsupportedSubagentProvider(String)
UnsupportedProviderWrite(String)
CommandNotFound
CommandFailed
WriteProtocol(String)
Serialization(String)
HomeDirectoryNotFound
ThreadNotFound
EntryNotFound
EmptyThreadFile
NonUtf8ThreadFile
Io
Sqlite
InvalidJsonLine
Trait Implementations§
Source§impl Error for XurlError
impl Error for XurlError
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 XurlError
impl !RefUnwindSafe for XurlError
impl Send for XurlError
impl Sync for XurlError
impl Unpin for XurlError
impl UnsafeUnpin for XurlError
impl !UnwindSafe for XurlError
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