#[non_exhaustive]pub enum Error {
Response(ResponseError),
Portal(PortalError),
Zbus(Error),
NoResponse,
ParseError(&'static str),
IO(Error),
Pipewire(Error),
InvalidAppID,
NulTerminated(usize),
RequiresVersion(u32, u32),
PortalNotFound(OwnedInterfaceName),
UnexpectedIcon,
}
Expand description
The error type for ashpd.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Response(ResponseError)
The portal request didn’t succeed.
Portal(PortalError)
Something Failed on the portal request.
Zbus(Error)
A zbus::fdo specific error.
NoResponse
A signal returned no response.
ParseError(&'static str)
Failed to parse a string into an enum variant
IO(Error)
Input/Output
Pipewire(Error)
A pipewire error
InvalidAppID
Invalid AppId
See https://developer.gnome.org/documentation/tutorials/application-id.html#rules-for-application-ids
NulTerminated(usize)
An error indicating that an interior nul byte was found
RequiresVersion(u32, u32)
Requires a newer interface version.
The inner fields are the required version and the version advertised by the interface.
PortalNotFound(OwnedInterfaceName)
Returned when the portal wasn’t found. Either the user has no portals frontend installed or the frontend doesn’t support the used portal.
UnexpectedIcon
An error indicating that a Icon::Bytes was expected but wrong type was passed
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<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.
source§impl From<ResponseError> for Error
impl From<ResponseError> for Error
source§fn from(e: ResponseError) -> Self
fn from(e: ResponseError) -> Self
Converts to this type from the input type.
source§impl From<UnexpectedIconError> for Error
impl From<UnexpectedIconError> for Error
source§fn from(_: UnexpectedIconError) -> Self
fn from(_: UnexpectedIconError) -> Self
Converts to this type from the input type.
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