pub struct BatchOpenContext {
pub options: StreamOptions,
pub budget: ResourceBudget,
}Expand description
Incremental batch source and stream contracts. Context supplied to a newly opened source. It shares one budget with the stream.
Fields§
§options: StreamOptionsThe validated resource options selected by the caller.
budget: ResourceBudgetShared resource budget for source/decode/operator/output reservations.
Implementations§
Source§impl BatchOpenContext
impl BatchOpenContext
Sourcepub fn new(options: StreamOptions) -> Self
pub fn new(options: StreamOptions) -> Self
Construct source-open context and its shared budget.
Trait Implementations§
Source§impl Clone for BatchOpenContext
impl Clone for BatchOpenContext
Source§fn clone(&self) -> BatchOpenContext
fn clone(&self) -> BatchOpenContext
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 moreAuto Trait Implementations§
impl Freeze for BatchOpenContext
impl RefUnwindSafe for BatchOpenContext
impl Send for BatchOpenContext
impl Sync for BatchOpenContext
impl Unpin for BatchOpenContext
impl UnsafeUnpin for BatchOpenContext
impl UnwindSafe for BatchOpenContext
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