Enum ashpd::PortalError
source · [−]pub enum PortalError {
ZBus(Error),
Failed,
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
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
sourceimpl DBusError for PortalError
impl DBusError for PortalError
fn name(&self) -> ErrorName<'_>
fn description(&self) -> Option<&str>
sourcefn create_reply(&self, call: &MessageHeader<'_>) -> Result<Message>
fn create_reply(&self, call: &MessageHeader<'_>) -> Result<Message>
Generate an error reply message for the given method call.
sourceimpl Debug for PortalError
impl Debug for PortalError
sourceimpl Display for PortalError
impl Display for PortalError
sourceimpl Error for PortalError
impl Error for PortalError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for PortalError
impl From<Error> for PortalError
sourcefn from(value: Error) -> PortalError
fn from(value: Error) -> PortalError
Performs the conversion.
sourceimpl From<PortalError> for Error
impl From<PortalError> for Error
sourcefn from(e: PortalError) -> Self
fn from(e: PortalError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for PortalError
impl Send for PortalError
impl Sync for PortalError
impl Unpin for PortalError
impl UnwindSafe for PortalError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more