pub struct TempFile { /* private fields */ }Implementations§
Source§impl TempFile
impl TempFile
pub fn new(io: &Arc<dyn IO>) -> Result<Self>
Sourcepub fn with_temp_store(io: &Arc<dyn IO>, temp_store: TempStore) -> Result<Self>
pub fn with_temp_store(io: &Arc<dyn IO>, temp_store: TempStore) -> Result<Self>
Creates a TempFile respecting the temp_store setting.
When temp_store is Memory, uses in-memory storage.
When temp_store is Default or File, uses file-based storage when
available. In no-fs builds, temp storage always falls back to memory.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TempFile
impl !UnwindSafe for TempFile
impl Freeze for TempFile
impl Send for TempFile
impl Sync for TempFile
impl Unpin for TempFile
impl UnsafeUnpin for TempFile
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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