pub enum Error {
InterfaceNotFound {
interface: String<MAX_INTERFACE_NAME_LENGTH>,
},
MethodNotFound {
method: String<MAX_METHOD_NAME_LENGTH>,
},
MethodNotImplemented {
method: String<MAX_METHOD_NAME_LENGTH>,
},
InvalidParameter {
parameter: String<MAX_PARAMETER_NAME_LENGTH>,
},
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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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 StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin 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