pub enum ProxyResolutionMode {
ScaleFactor(f32),
Fixed(u32, u32),
FitWithin {
max_width: u32,
max_height: u32,
},
}Expand description
Target resolution mode.
Variants§
ScaleFactor(f32)
Scale to a fraction of the original (e.g., 0.25 = quarter res).
Fixed(u32, u32)
Specific pixel dimensions (width, height).
FitWithin
Fit within a bounding box preserving aspect ratio.
Implementations§
Trait Implementations§
Source§impl Clone for ProxyResolutionMode
impl Clone for ProxyResolutionMode
Source§fn clone(&self) -> ProxyResolutionMode
fn clone(&self) -> ProxyResolutionMode
Returns a duplicate 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 ProxyResolutionMode
impl Debug for ProxyResolutionMode
Source§impl<'de> Deserialize<'de> for ProxyResolutionMode
impl<'de> Deserialize<'de> for ProxyResolutionMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProxyResolutionMode
impl PartialEq for ProxyResolutionMode
Source§impl Serialize for ProxyResolutionMode
impl Serialize for ProxyResolutionMode
impl Copy for ProxyResolutionMode
impl StructuralPartialEq for ProxyResolutionMode
Auto Trait Implementations§
impl Freeze for ProxyResolutionMode
impl RefUnwindSafe for ProxyResolutionMode
impl Send for ProxyResolutionMode
impl Sync for ProxyResolutionMode
impl Unpin for ProxyResolutionMode
impl UnsafeUnpin for ProxyResolutionMode
impl UnwindSafe for ProxyResolutionMode
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more