pub struct GlobalResultAssembler { /* private fields */ }Expand description
Coordinator-owned atomic result assembler.
Implementations§
Source§impl GlobalResultAssembler
impl GlobalResultAssembler
pub fn new( expected_ranges: impl IntoIterator<Item = String>, plan: AssemblyPlan, budget: DistributedReadBudget, ) -> Result<Self, DistributedReadAssemblyError>
Sourcepub fn push_range(
&mut self,
input: RangeAssemblerInput,
) -> Result<(), DistributedReadAssemblyError>
pub fn push_range( &mut self, input: RangeAssemblerInput, ) -> Result<(), DistributedReadAssemblyError>
Register all buffered payloads for one range. Callers must not open a
client stream before Self::prepare returns successfully.
Sourcepub fn prepare(
&mut self,
) -> Result<PreparedResult, DistributedReadAssemblyError>
pub fn prepare( &mut self, ) -> Result<PreparedResult, DistributedReadAssemblyError>
Validate all terminal acknowledgements and atomically materialize the final result. On every error, coordinator-owned payloads are discarded.
pub fn open_prepared_stream( &self, ) -> Result<PreparedResultStream, DistributedReadAssemblyError>
pub fn terminal_status(&self) -> AssemblerTerminalStatus
Auto Trait Implementations§
impl Freeze for GlobalResultAssembler
impl RefUnwindSafe for GlobalResultAssembler
impl Send for GlobalResultAssembler
impl Sync for GlobalResultAssembler
impl Unpin for GlobalResultAssembler
impl UnsafeUnpin for GlobalResultAssembler
impl UnwindSafe for GlobalResultAssembler
Blanket Implementations§
impl<T> Allocation for T
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