pub enum BpError {
}Expand description
Every error that can originate inside bp-core.
Uses #[from] blanket conversions for std::io::Error and
serde_json::Error so that ? works transparently on I/O and
serialisation operations.
Variants§
Identity(String)
Keypair generation, encoding, or decoding failed.
Service(String)
Invalid service type string or registry operation failed.
Network(String)
libp2p swarm or gossip operation failed.
Control(String)
Unix socket bind, accept, or I/O failed.
Config(String)
XDG path resolution failed (e.g. no home directory).
Storage(String)
Storage directory, fragment I/O, or quota error.
Coding(String)
RLNC encoding, decoding, or recoding error (e.g. singular matrix).
Io(Error)
Transparent wrapper around std::io::Error.
Serde(Error)
Transparent wrapper around serde_json::Error.
NotAuthenticated
The user has not yet run bp login — no keypair on disk.
DaemonNotRunning
bp hatch has not been run — no daemon PID file or process found.
ServiceNotFound(String)
A service UUID was referenced but is not in the registry.
UnknownNetwork(String)
A network ID was referenced that this daemon has not joined.
InvalidInput(String)
An argument or parameter value is invalid (e.g. unknown tier name).
Trait Implementations§
Source§impl Error for BpError
impl Error for BpError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for BpError
impl !RefUnwindSafe for BpError
impl Send for BpError
impl Sync for BpError
impl Unpin for BpError
impl !UnwindSafe for BpError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more