pub enum Error {
Show 16 variants
DeviceNotFound,
NoDisplays,
AlreadyRequested,
BuffersNotAllocated,
SysmemConnection,
IdsExhausted,
DevicePathInvalid,
FidlError(Error),
IoError(Error),
ZxError(Status),
DeviceConnectionError(Error),
FsError(OpenError),
WatcherCreateError(WatcherCreateError),
WatcherStreamError(WatcherStreamError),
CouldNotSendVsyncEvent(TrySendError<VsyncEvent>),
InvalidUtf8(Utf8Error),
}
Expand description
Library error type.
Variants§
DeviceNotFound
Error encountered while connecting to a display-coordinator device via devfs.
NoDisplays
No displays were reported by the display driver when expected.
AlreadyRequested
A request handling task (such as one that owns a FIDL event stream that can only be started once) was already been initiated before.
BuffersNotAllocated
Error while allocating shared sysmem buffers.
SysmemConnection
Error while establishing a connection to sysmem.
IdsExhausted
Ran out of free client-assigned identifiers.
DevicePathInvalid
Path to the device is invalid (e.g. containing invalid characters).
FidlError(Error)
Wrapper for errors from FIDL bindings.
IoError(Error)
Wrapper for system file I/O errors.
ZxError(Status)
Wrapper for errors from zircon syscalls.
DeviceConnectionError(Error)
Wrapper for errors from FIDL device connections.
FsError(OpenError)
Wrapper for errors from fuchsia-fs.
WatcherCreateError(WatcherCreateError)
Wrapper for errors from fuchsia-fs watcher creation.
WatcherStreamError(WatcherStreamError)
Wrapper for errors from the fuchsia-fs watcher stream.
CouldNotSendVsyncEvent(TrySendError<VsyncEvent>)
Error that occurred while notifying vsync event listeners over an in-process async channel.
InvalidUtf8(Utf8Error)
UTF-8 validation error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<TrySendError<VsyncEvent>> for Error
impl From<TrySendError<VsyncEvent>> for Error
Source§fn from(source: TrySendError<VsyncEvent>) -> Self
fn from(source: TrySendError<VsyncEvent>) -> Self
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more