pub enum PortalError {
ZBus(Error),
Failed(String),
InvalidArgument(String),
NotFound(String),
Exist(String),
NotAllowed(String),
Cancelled(String),
WindowDestroyed(String),
}
Expand description
An error type that describes the various DBus errors.
See https://github.com/flatpak/xdg-desktop-portal/blob/master/src/xdp-utils.h#L119-L127.
Variants§
ZBus(Error)
ZBus specific error.
Failed(String)
Request failed.
InvalidArgument(String)
Invalid arguments passed.
NotFound(String)
Not found.
Exist(String)
Exists already.
NotAllowed(String)
Method not allowed to be called.
Cancelled(String)
Request cancelled.
WindowDestroyed(String)
Window destroyed.
Trait Implementations§
Source§impl DBusError for PortalError
impl DBusError for PortalError
Source§impl Debug for PortalError
impl Debug for PortalError
Source§impl Display for PortalError
impl Display for PortalError
Source§impl Error for PortalError
impl Error for PortalError
1.30.0 · 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 PortalError
impl From<Error> for PortalError
Source§fn from(value: Error) -> PortalError
fn from(value: Error) -> PortalError
Converts to this type from the input type.
Source§impl From<PortalError> for Error
impl From<PortalError> for Error
Source§fn from(e: PortalError) -> Self
fn from(e: PortalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PortalError
impl !RefUnwindSafe for PortalError
impl Send for PortalError
impl Sync for PortalError
impl Unpin for PortalError
impl !UnwindSafe for PortalError
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