pub enum Error<'a> {
InterfaceNotFound {
interface: Cow<'a, str>,
},
MethodNotFound {
method: Cow<'a, str>,
},
MethodNotImplemented {
method: Cow<'a, str>,
},
InvalidParameter {
parameter: Cow<'a, str>,
},
PermissionDenied,
ExpectedMore,
}Expand description
Errors that can be returned by the org.varlink.service interface.
Variants§
InterfaceNotFound
The requested interface was not found.
MethodNotFound
The requested method was not found.
MethodNotImplemented
The interface defines the requested method, but the service does not implement it.
InvalidParameter
One of the passed parameters is invalid.
PermissionDenied
Client is denied access.
ExpectedMore
Method is expected to be called with ‘more’ set to true, but wasn’t.
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Error<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for Error<'a>where
'de: 'a,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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()
impl<'a> StructuralPartialEq for Error<'a>
Auto Trait Implementations§
impl<'a> Freeze for Error<'a>
impl<'a> RefUnwindSafe for Error<'a>
impl<'a> Send for Error<'a>
impl<'a> Sync for Error<'a>
impl<'a> Unpin for Error<'a>
impl<'a> UnwindSafe for Error<'a>
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