#[non_exhaustive]pub enum FrameFormat {
Gray,
Rgb,
Red,
Green,
Blue,
Unknown(u32),
}Expand description
The format of a frame (SANE_Frame).
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.
Gray
One gray (luminance) sample per pixel.
Rgb
Red, green and blue samples, interleaved per pixel.
Red
The red samples of a three-pass color scan.
Green
The green samples of a three-pass color scan.
Blue
The blue samples of a three-pass color scan.
Unknown(u32)
A format outside the SANE 1 standard (some backends send infrared or compressed frames).
Implementations§
Trait Implementations§
Source§impl Clone for FrameFormat
impl Clone for FrameFormat
impl Copy for FrameFormat
Source§impl Debug for FrameFormat
impl Debug for FrameFormat
impl Eq for FrameFormat
Source§impl Hash for FrameFormat
impl Hash for FrameFormat
Source§impl PartialEq for FrameFormat
impl PartialEq for FrameFormat
impl StructuralPartialEq for FrameFormat
Auto Trait Implementations§
impl Forget for FrameFormat
impl Freeze for FrameFormat
impl Move for FrameFormat
impl RefUnwindSafe for FrameFormat
impl Send for FrameFormat
impl Sync for FrameFormat
impl Unpin for FrameFormat
impl UnsafeUnpin for FrameFormat
impl UnwindSafe for FrameFormat
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