pub enum Error {
DbusError(Error),
ServiceInitializationFailed(String),
ObjectNotFound(OwnedObjectPath),
WrongObjectType {
object_path: OwnedObjectPath,
expected: String,
actual: String,
},
ObjectCreationFailed {
object_type: String,
object_path: OwnedObjectPath,
source: Box<dyn Error + Send + Sync>,
},
OperationFailed {
operation: &'static str,
source: Box<dyn Error + Send + Sync>,
},
MissingCancellationToken,
DataConversionFailed {
data_type: String,
reason: String,
},
}Expand description
Network service errors
Variants§
DbusError(Error)
D-Bus communication error.
ServiceInitializationFailed(String)
Service initialization failed (used for top-level service startup).
ObjectNotFound(OwnedObjectPath)
Object not found at the specified D-Bus path.
WrongObjectType
Object exists but is of wrong type.
Fields
§
object_path: OwnedObjectPathDBus object path that has wrong type.
ObjectCreationFailed
Cannot create or fetch an object.
Fields
§
object_path: OwnedObjectPathDBus path where creation failed.
OperationFailed
Network operation failed.
Fields
MissingCancellationToken
Monitoring requires a cancellation token.
DataConversionFailed
Data conversion or parsing failed.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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