pub struct SpillSession { /* private fields */ }Expand description
A query’s spill session: namespaced, budgeted factory of spill files. Dropping the session removes the whole per-query directory.
Implementations§
Source§impl SpillSession
impl SpillSession
Sourcepub fn budget_remaining(&self) -> u64
pub fn budget_remaining(&self) -> u64
Per-query budget remaining.
Sourcepub fn new_writer(&self) -> Result<SpillWriter, SpillError>
pub fn new_writer(&self) -> Result<SpillWriter, SpillError>
Creates the next spill file of this query and returns its writer.
Dropping the writer before SpillWriter::finish deletes the partial
file (the error/cancel path).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SpillSession
impl !UnwindSafe for SpillSession
impl Freeze for SpillSession
impl Send for SpillSession
impl Sync for SpillSession
impl Unpin for SpillSession
impl UnsafeUnpin for SpillSession
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
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