pub enum OutputFrameKind {
Baseline(OutputPayload),
Delta(OutputPayload),
Clear(ClearReason),
Rebaseline(OutputPayload, RebaselineReason),
}Expand description
Data-only output frame kind.
Variants§
Baseline(OutputPayload)
Complete current state for a newly attached output.
Delta(OutputPayload)
State-replacement delta for an existing output.
Clear(ClearReason)
Clear the consumer state for this output.
Rebaseline(OutputPayload, RebaselineReason)
Complete current state after an explicit discontinuity.
Implementations§
Source§impl OutputFrameKind
impl OutputFrameKind
Sourcepub fn rebaseline<T>(value: T, reason: RebaselineReason) -> Self
pub fn rebaseline<T>(value: T, reason: RebaselineReason) -> Self
Builds a rebaseline frame kind with a typed payload.
Sourcepub fn payload<T>(&self) -> Option<&T>
pub fn payload<T>(&self) -> Option<&T>
Returns this frame payload as the requested type, if this is a payload frame.
Sourcepub fn clear_reason(&self) -> Option<ClearReason>
pub fn clear_reason(&self) -> Option<ClearReason>
Returns the clear reason, if this is a clear frame.
Sourcepub fn rebaseline_reason(&self) -> Option<RebaselineReason>
pub fn rebaseline_reason(&self) -> Option<RebaselineReason>
Returns the rebaseline reason, if this is a rebaseline frame.
Trait Implementations§
Source§impl Clone for OutputFrameKind
impl Clone for OutputFrameKind
Source§fn clone(&self) -> OutputFrameKind
fn clone(&self) -> OutputFrameKind
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 Debug for OutputFrameKind
impl Debug for OutputFrameKind
Source§impl PartialEq for OutputFrameKind
impl PartialEq for OutputFrameKind
Source§fn eq(&self, other: &OutputFrameKind) -> bool
fn eq(&self, other: &OutputFrameKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutputFrameKind
Auto Trait Implementations§
impl !RefUnwindSafe for OutputFrameKind
impl !UnwindSafe for OutputFrameKind
impl Freeze for OutputFrameKind
impl Send for OutputFrameKind
impl Sync for OutputFrameKind
impl Unpin for OutputFrameKind
impl UnsafeUnpin for OutputFrameKind
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