#[non_exhaustive]pub enum RequestMode {
HeightForWidth,
WidthForHeight,
ContentSize,
}
Expand description
Specifies the type of requests for a Actor
.
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.
HeightForWidth
Height for width requests
WidthForHeight
Width for height requests
ContentSize
Use the preferred size of the
Content
, if it has any (available since 1.22)
Trait Implementations§
Source§impl Clone for RequestMode
impl Clone for RequestMode
Source§fn clone(&self) -> RequestMode
fn clone(&self) -> RequestMode
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 RequestMode
impl Debug for RequestMode
Source§impl Display for RequestMode
impl Display for RequestMode
Source§impl<'a> FromValue<'a> for RequestMode
impl<'a> FromValue<'a> for RequestMode
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for RequestMode
impl<'a> FromValueOptional<'a> for RequestMode
Source§impl Hash for RequestMode
impl Hash for RequestMode
Source§impl Ord for RequestMode
impl Ord for RequestMode
Source§fn cmp(&self, other: &RequestMode) -> Ordering
fn cmp(&self, other: &RequestMode) -> 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 RequestMode
impl PartialEq for RequestMode
Source§impl PartialOrd for RequestMode
impl PartialOrd for RequestMode
Source§impl SetValue for RequestMode
impl SetValue for RequestMode
Source§impl StaticType for RequestMode
impl StaticType for RequestMode
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for RequestMode
impl Eq for RequestMode
impl StructuralPartialEq for RequestMode
Auto Trait Implementations§
impl Freeze for RequestMode
impl RefUnwindSafe for RequestMode
impl Send for RequestMode
impl Sync for RequestMode
impl Unpin for RequestMode
impl UnwindSafe for RequestMode
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§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.