pub struct RunFiles {
root: PathBuf,
id: String,
directory: File,
artifacts: File,
_lock: File,
}Expand description
Owns an exclusive OS lock until dropped, including during unwinding.
Fields§
§root: PathBuf§id: String§directory: File§artifacts: File§_lock: FileImplementations§
Source§impl RunFiles
impl RunFiles
fn verify_directory(&self) -> Result<()>
pub(super) fn write_impl( &self, name: &str, content: &[u8], ) -> Result<ArtifactFile>
Source§impl RunFiles
impl RunFiles
Sourcepub fn write_artifact(&self, name: &str, content: &[u8]) -> Result<ArtifactFile>
pub fn write_artifact(&self, name: &str, content: &[u8]) -> Result<ArtifactFile>
Create a unique immutable artifact; callers may record this metadata only after success. An error or crash can leave an unreferenced partial file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunFiles
impl RefUnwindSafe for RunFiles
impl Send for RunFiles
impl Sync for RunFiles
impl Unpin for RunFiles
impl UnsafeUnpin for RunFiles
impl UnwindSafe for RunFiles
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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