pub struct SplitEmitter<'a> { /* private fields */ }Expand description
Implementations§
Source§impl SplitEmitter<'_>
impl SplitEmitter<'_>
Sourcepub fn emit<'buf, F: RecFamily + 'static>(
&mut self,
handle: Sink<F>,
row: F::Rec<'buf>,
)
pub fn emit<'buf, F: RecFamily + 'static>( &mut self, handle: Sink<F>, row: F::Rec<'buf>, )
Route one derived record to handle’s branch, inheriting the parent’s
metadata and acknowledgment handle. Emitting to no branch (returning
from the closure without any emit) invokes the unmatched policy.
Once a branch of this split holds a fatal, every later emit in the
payload is dropped until the chain drains it.
§Panics
Panics if handle does not name a branch of this split. That covers a
handle minted by a different split’s builder, and one whose record
family does not match the branch at its index.
Sourcepub fn meta(&self) -> RecordMeta
pub fn meta(&self) -> RecordMeta
The parent record’s metadata.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SplitEmitter<'a>
impl<'a> !Sync for SplitEmitter<'a>
impl<'a> !UnwindSafe for SplitEmitter<'a>
impl<'a> Freeze for SplitEmitter<'a>
impl<'a> Send for SplitEmitter<'a>
impl<'a> Unpin for SplitEmitter<'a>
impl<'a> UnsafeUnpin for SplitEmitter<'a>
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