pub struct ExternalScalingEntry {Show 14 fields
pub label: String,
pub source: String,
pub width: usize,
pub height: usize,
pub attempted: bool,
pub measured_gpu: bool,
pub total_ms: Option<f64>,
pub dispatch_ms: Option<f64>,
pub readback_ms: Option<f64>,
pub ms_per_megapixel: Option<f64>,
pub scaling_ratio_vs_native: Option<f64>,
pub pixel_ratio_vs_native: f64,
pub approximately_linear: Option<bool>,
pub unavailable_reason: Option<String>,
}Fields§
§label: String§source: String§width: usize§height: usize§attempted: bool§measured_gpu: bool§total_ms: Option<f64>§dispatch_ms: Option<f64>§readback_ms: Option<f64>§ms_per_megapixel: Option<f64>§scaling_ratio_vs_native: Option<f64>§pixel_ratio_vs_native: f64§approximately_linear: Option<bool>Trait Implementations§
Source§impl Clone for ExternalScalingEntry
impl Clone for ExternalScalingEntry
Source§fn clone(&self) -> ExternalScalingEntry
fn clone(&self) -> ExternalScalingEntry
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 ExternalScalingEntry
impl Debug for ExternalScalingEntry
Source§impl<'de> Deserialize<'de> for ExternalScalingEntry
impl<'de> Deserialize<'de> for ExternalScalingEntry
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
Auto Trait Implementations§
impl Freeze for ExternalScalingEntry
impl RefUnwindSafe for ExternalScalingEntry
impl Send for ExternalScalingEntry
impl Sync for ExternalScalingEntry
impl Unpin for ExternalScalingEntry
impl UnsafeUnpin for ExternalScalingEntry
impl UnwindSafe for ExternalScalingEntry
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