pub enum NodeEventError {
Regex(&'static str, Error),
NoControlSocket(PathBuf),
CannotSubscribe(PathBuf, Error),
Node(Error),
BrokenConnection,
Id(IdError),
Io(Error),
ReadFilterFile(PathBuf, Error),
FiltersJsonFile(PathBuf, Error),
FiltersYamlFile(PathBuf, Error),
FiltersJsonString(Error),
ParseOid(String, Error),
}
Expand description
Possible errors from accessing the local Radicle node.
Variants§
Regex(&'static str, Error)
Regex compilation error.
NoControlSocket(PathBuf)
Node control socket does not exist.
CannotSubscribe(PathBuf, Error)
Can’t subscribe to node events.
Node(Error)
Some error from getting an event from the node.
BrokenConnection
Connection to the node control socket broke.
Id(IdError)
Some error from parsing a repository id.
Io(Error)
Some error doing input/output.
ReadFilterFile(PathBuf, Error)
An error reading a filter file.
FiltersJsonFile(PathBuf, Error)
An error parsing JSON as filters, when read from a file.
FiltersYamlFile(PathBuf, Error)
An error parsing YAML as filters, when read from a file.
FiltersJsonString(Error)
An error parsing JSON as filters, from an in-memory string.
ParseOid(String, Error)
An error parsing a Git object id as string into an Oid.
Trait Implementations§
Source§impl Debug for NodeEventError
impl Debug for NodeEventError
Source§impl Display for NodeEventError
impl Display for NodeEventError
Source§impl Error for NodeEventError
impl Error for NodeEventError
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<Error> for NodeEventError
impl From<Error> for NodeEventError
Source§impl From<Error> for NodeEventError
impl From<Error> for NodeEventError
Auto Trait Implementations§
impl Freeze for NodeEventError
impl !RefUnwindSafe for NodeEventError
impl Send for NodeEventError
impl Sync for NodeEventError
impl Unpin for NodeEventError
impl !UnwindSafe for NodeEventError
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