pub struct FrameHasher { /* private fields */ }Expand description
Hashes frame content without the status bar.
Implementations§
Source§impl FrameHasher
impl FrameHasher
Sourcepub const DEFAULT_STATUS_BAR_FRACTION: f32 = 0.06
pub const DEFAULT_STATUS_BAR_FRACTION: f32 = 0.06
The share of the screen height taken for the status bar when nothing better is known: 6 %, 144 of 2400 rows, which S7 found covers the Pixel 8 profile’s status bar.
Sourcepub fn new(status_bar_fraction: f32) -> Self
pub fn new(status_bar_fraction: f32) -> Self
A hasher that leaves out the top status_bar_fraction of every frame,
clamped to 0 through 1; NaN leaves nothing out.
Sourcepub fn status_bar_rows(&self, height: u32) -> u32
pub fn status_bar_rows(&self, height: u32) -> u32
Rows at the top of a frame height rows high that the hash leaves out.
Trait Implementations§
Source§impl Clone for FrameHasher
impl Clone for FrameHasher
impl Copy for FrameHasher
Source§impl Debug for FrameHasher
impl Debug for FrameHasher
Source§impl Default for FrameHasher
impl Default for FrameHasher
Source§impl PartialEq for FrameHasher
impl PartialEq for FrameHasher
impl StructuralPartialEq for FrameHasher
Auto Trait Implementations§
impl Freeze for FrameHasher
impl RefUnwindSafe for FrameHasher
impl Send for FrameHasher
impl Sync for FrameHasher
impl Unpin for FrameHasher
impl UnsafeUnpin for FrameHasher
impl UnwindSafe for FrameHasher
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request