pub struct DeclaredGap<Id> { /* private fields */ }Expand description
A caller-declared interval for which visual continuity is unknown.
Implementations§
Source§impl<Id> DeclaredGap<Id>
impl<Id> DeclaredGap<Id>
pub fn new( id: Id, range: TimeRange, reason: impl Into<String>, estimated_missing_frames: Option<NonZeroU64>, ) -> Result<Self>
pub fn id(&self) -> &Id
pub const fn range(&self) -> TimeRange
pub fn reason(&self) -> &str
pub const fn estimated_missing_frames(&self) -> Option<NonZeroU64>
Trait Implementations§
Source§impl<Id: Clone> Clone for DeclaredGap<Id>
impl<Id: Clone> Clone for DeclaredGap<Id>
Source§fn clone(&self) -> DeclaredGap<Id>
fn clone(&self) -> DeclaredGap<Id>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Id: Debug> Debug for DeclaredGap<Id>
impl<Id: Debug> Debug for DeclaredGap<Id>
Source§impl<'de, Id: Deserialize<'de>> Deserialize<'de> for DeclaredGap<Id>
impl<'de, Id: Deserialize<'de>> Deserialize<'de> for DeclaredGap<Id>
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
impl<Id: Eq> Eq for DeclaredGap<Id>
Source§impl<Id: PartialEq> PartialEq for DeclaredGap<Id>
impl<Id: PartialEq> PartialEq for DeclaredGap<Id>
Source§impl<Id> Serialize for DeclaredGap<Id>where
Id: Serialize,
impl<Id> Serialize for DeclaredGap<Id>where
Id: Serialize,
impl<Id: PartialEq> StructuralPartialEq for DeclaredGap<Id>
Auto Trait Implementations§
impl<Id> Freeze for DeclaredGap<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for DeclaredGap<Id>where
Id: RefUnwindSafe,
impl<Id> Send for DeclaredGap<Id>where
Id: Send,
impl<Id> Sync for DeclaredGap<Id>where
Id: Sync,
impl<Id> Unpin for DeclaredGap<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for DeclaredGap<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for DeclaredGap<Id>where
Id: UnwindSafe,
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