pub struct ScratchAttempt { /* private fields */ }Expand description
One exclusively-created private attempt directory.
Implementations§
Source§impl ScratchAttempt
impl ScratchAttempt
Sourcepub fn create_dataset_attempt(
&self,
authority: &mut dyn DatasetOutputAuthority,
) -> Result<Self, LakeError>
pub fn create_dataset_attempt( &self, authority: &mut dyn DatasetOutputAuthority, ) -> Result<Self, LakeError>
Creates output-owned scratch using the durable private attempt identity.
Sourcepub fn cleanup_dataset_attempt(
&self,
authority: &mut dyn DatasetOutputAuthority,
) -> Result<(), LakeError>
pub fn cleanup_dataset_attempt( &self, authority: &mut dyn DatasetOutputAuthority, ) -> Result<(), LakeError>
Reconciles only the recorded attempt under this retained configured root. Executor exclusion and metadata outcome must have been claimed first.
Sourcepub fn create_child(
&self,
identifier: ScratchAttemptId,
) -> Result<Self, ScratchError>
pub fn create_child( &self, identifier: ScratchAttemptId, ) -> Result<Self, ScratchError>
Creates an exclusive child attempt under this retained scratch capability.
Sourcepub fn path(&self) -> &Path
pub fn path(&self) -> &Path
Restricted trusted-adapter path; callers must not serialize or project it.
Sourcepub fn cleanup(&self) -> Result<(), ScratchError>
pub fn cleanup(&self) -> Result<(), ScratchError>
Deletes the complete attempt tree without following child symlinks. Missing attempts are already clean and therefore succeed.
Trait Implementations§
Source§impl Debug for ScratchAttempt
impl Debug for ScratchAttempt
Auto Trait Implementations§
impl Freeze for ScratchAttempt
impl RefUnwindSafe for ScratchAttempt
impl Send for ScratchAttempt
impl Sync for ScratchAttempt
impl Unpin for ScratchAttempt
impl UnsafeUnpin for ScratchAttempt
impl UnwindSafe for ScratchAttempt
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