pub enum PixmanError {
Show 14 variants
UnsupportedNumberOfPlanes,
UnsupportedPixelFormat(DrmFourcc),
UnsupportedModifier(DrmModifier),
UnsupportedWlPixelFormat(Format),
IncompleteBuffer {
expected: usize,
actual: usize,
},
BufferAccessError(BufferAccessError),
ImportFailed,
BufferDestroyed,
Map(DmabufMappingFailed),
Sync(DmabufSyncFailed),
Failed(OperationFailed),
NoTargetBound,
Unsupported,
SyncInterrupted,
}Available on crate feature
renderer_pixman only.Expand description
Error returned during rendering using pixman
Variants§
UnsupportedNumberOfPlanes
The given buffer has an unsupported number of planes
UnsupportedPixelFormat(DrmFourcc)
The given buffer has an unsupported pixel format
UnsupportedModifier(DrmModifier)
The given buffer has an unsupported modifier
UnsupportedWlPixelFormat(Format)
Available on crate feature
wayland_frontend only.The given wl buffer has an unsupported pixel format
IncompleteBuffer
The given buffer is incomplete
BufferAccessError(BufferAccessError)
Available on crate feature
wayland_frontend only.The given buffer was not accessible
ImportFailed
Failed to import the given buffer
BufferDestroyed
The underlying buffer has been destroyed
Map(DmabufMappingFailed)
Mapping the buffer failed
Sync(DmabufSyncFailed)
Synchronizing access to the buffer failed
Failed(OperationFailed)
The requested operation failed
NoTargetBound
No target is currently bound
Unsupported
The requested operation is not supported
SyncInterrupted
Blocking for a synchronization primitive failed
Trait Implementations§
Source§impl Debug for PixmanError
impl Debug for PixmanError
Source§impl Display for PixmanError
impl Display for PixmanError
Source§impl Error for PixmanError
impl Error for PixmanError
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<BufferAccessError> for PixmanError
impl From<BufferAccessError> for PixmanError
Source§fn from(source: BufferAccessError) -> Self
fn from(source: BufferAccessError) -> Self
Converts to this type from the input type.
Source§impl From<DmabufMappingFailed> for PixmanError
impl From<DmabufMappingFailed> for PixmanError
Source§fn from(source: DmabufMappingFailed) -> Self
fn from(source: DmabufMappingFailed) -> Self
Converts to this type from the input type.
Source§impl From<DmabufSyncFailed> for PixmanError
impl From<DmabufSyncFailed> for PixmanError
Source§fn from(source: DmabufSyncFailed) -> Self
fn from(source: DmabufSyncFailed) -> Self
Converts to this type from the input type.
Source§impl From<OperationFailed> for PixmanError
impl From<OperationFailed> for PixmanError
Source§fn from(source: OperationFailed) -> Self
fn from(source: OperationFailed) -> Self
Converts to this type from the input type.
Source§impl From<PixmanError> for SwapBuffersError
impl From<PixmanError> for SwapBuffersError
Source§fn from(value: PixmanError) -> Self
fn from(value: PixmanError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PixmanError
impl !RefUnwindSafe for PixmanError
impl Send for PixmanError
impl Sync for PixmanError
impl Unpin for PixmanError
impl !UnwindSafe for PixmanError
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.