pub enum HarmonyFoldState {
Folded,
HalfFolded,
Expanded,
}Expand description
Physical hinge posture state reported by HarmonyOS foldable devices (display.FoldStatus).
Variants§
Folded
Device is closed to its compact cover screen.
HalfFolded
Device is partially unfolded (tent / flex laptop posture).
Expanded
Device is fully unfolded to its tablet-class inner display.
Trait Implementations§
Source§impl Clone for HarmonyFoldState
impl Clone for HarmonyFoldState
impl Copy for HarmonyFoldState
Source§impl Debug for HarmonyFoldState
impl Debug for HarmonyFoldState
Source§impl Default for HarmonyFoldState
impl Default for HarmonyFoldState
impl Eq for HarmonyFoldState
Source§impl Hash for HarmonyFoldState
impl Hash for HarmonyFoldState
Source§impl Ord for HarmonyFoldState
impl Ord for HarmonyFoldState
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HarmonyFoldState
impl PartialEq for HarmonyFoldState
Source§impl PartialOrd for HarmonyFoldState
impl PartialOrd for HarmonyFoldState
impl StructuralPartialEq for HarmonyFoldState
Auto Trait Implementations§
impl Forget for HarmonyFoldState
impl Freeze for HarmonyFoldState
impl Move for HarmonyFoldState
impl RefUnwindSafe for HarmonyFoldState
impl Send for HarmonyFoldState
impl Sync for HarmonyFoldState
impl Unpin for HarmonyFoldState
impl UnsafeUnpin for HarmonyFoldState
impl UnwindSafe for HarmonyFoldState
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