#[repr(u32)]pub enum ScreenCaptureRotation {
Cw0Degrees = 0,
Cw90Degrees = 1,
Cw180Degrees = 2,
Cw270Degrees = 3,
}
Expand description
Rotation applied to the image.
For example, if the display is rotated 90 degrees according to its
display_info
config file, the image can be captured as if the display
is not rotated (0 degrees) by applying CW_270_DEGREES.
Variants§
Implementations§
Source§impl ScreenCaptureRotation
impl ScreenCaptureRotation
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl Clone for ScreenCaptureRotation
impl Clone for ScreenCaptureRotation
Source§fn clone(&self) -> ScreenCaptureRotation
fn clone(&self) -> ScreenCaptureRotation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ScreenCaptureRotation
impl Debug for ScreenCaptureRotation
Source§impl<D: ResourceDialect> Decode<ScreenCaptureRotation, D> for ScreenCaptureRotation
impl<D: ResourceDialect> Decode<ScreenCaptureRotation, D> for ScreenCaptureRotation
Source§impl<D: ResourceDialect> Encode<ScreenCaptureRotation, D> for ScreenCaptureRotation
impl<D: ResourceDialect> Encode<ScreenCaptureRotation, D> for ScreenCaptureRotation
Source§impl Hash for ScreenCaptureRotation
impl Hash for ScreenCaptureRotation
Source§impl Ord for ScreenCaptureRotation
impl Ord for ScreenCaptureRotation
Source§fn cmp(&self, other: &ScreenCaptureRotation) -> Ordering
fn cmp(&self, other: &ScreenCaptureRotation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScreenCaptureRotation
impl PartialEq for ScreenCaptureRotation
Source§impl PartialOrd for ScreenCaptureRotation
impl PartialOrd for ScreenCaptureRotation
Source§impl TypeMarker for ScreenCaptureRotation
impl TypeMarker for ScreenCaptureRotation
Source§type Owned = ScreenCaptureRotation
type Owned = ScreenCaptureRotation
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for ScreenCaptureRotation
impl ValueTypeMarker for ScreenCaptureRotation
Source§type Borrowed<'a> = ScreenCaptureRotation
type Borrowed<'a> = ScreenCaptureRotation
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for ScreenCaptureRotation
impl Eq for ScreenCaptureRotation
impl StructuralPartialEq for ScreenCaptureRotation
Auto Trait Implementations§
impl Freeze for ScreenCaptureRotation
impl RefUnwindSafe for ScreenCaptureRotation
impl Send for ScreenCaptureRotation
impl Sync for ScreenCaptureRotation
impl Unpin for ScreenCaptureRotation
impl UnwindSafe for ScreenCaptureRotation
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)