pub struct InFlightBudget { /* private fields */ }Available on crate features
polars-io and cloud only.Implementations§
Source§impl InFlightBudget
impl InFlightBudget
pub fn new( initial_byte_budget: u64, floor_byte_budget: u64, initial_request_budget: u32, ) -> InFlightBudget
pub async fn acquire(self: &Arc<InFlightBudget>, n_bytes: u64) -> InFlightPermit
pub fn current_byte_budget(&self) -> u64
pub fn floor_byte_budget(&self) -> u64
pub fn resize_byte_budget(&self, new: u64)
pub fn stats(&self) -> InFlightStats
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InFlightBudget
impl RefUnwindSafe for InFlightBudget
impl Send for InFlightBudget
impl Sync for InFlightBudget
impl Unpin for InFlightBudget
impl UnsafeUnpin for InFlightBudget
impl UnwindSafe for InFlightBudget
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more