pub struct OutputFrame {
pub output_key: OutputKey,
pub scope: ScopeId,
pub transaction_id: TransactionId,
pub revision: Revision,
pub kind: OutputFrameKind,
}Expand description
Data-only materialized output frame returned from a transaction.
Fields§
§output_key: OutputKeyOutput key this frame targets.
scope: ScopeIdScope that owns this output.
transaction_id: TransactionIdTransaction that emitted this frame.
revision: RevisionGraph revision this frame belongs to.
kind: OutputFrameKindFrame payload.
Implementations§
Source§impl OutputFrame
impl OutputFrame
Sourcepub fn payload_for<T>(&self, output: &MaterializedOutput<T>) -> Option<&T>
pub fn payload_for<T>(&self, output: &MaterializedOutput<T>) -> Option<&T>
Returns this frame payload as the requested type when both key and type match.
Trait Implementations§
Source§impl Clone for OutputFrame
impl Clone for OutputFrame
Source§fn clone(&self) -> OutputFrame
fn clone(&self) -> OutputFrame
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 OutputFrame
impl Debug for OutputFrame
Source§impl PartialEq for OutputFrame
impl PartialEq for OutputFrame
Source§fn eq(&self, other: &OutputFrame) -> bool
fn eq(&self, other: &OutputFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutputFrame
Auto Trait Implementations§
impl !RefUnwindSafe for OutputFrame
impl !UnwindSafe for OutputFrame
impl Freeze for OutputFrame
impl Send for OutputFrame
impl Sync for OutputFrame
impl Unpin for OutputFrame
impl UnsafeUnpin for OutputFrame
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