pub enum AnyFileHandle {
Std(OpenStdFile),
Memory(OpenMemoryFile),
}
Expand description
A handle to an open file that could be either an OpenStdFile
or an OpenMemoryFile
.
Variants
Std(OpenStdFile)
An open file on the filesystem.
Memory(OpenMemoryFile)
An open file in memory.
Trait Implementations
sourceimpl Debug for AnyFileHandle
impl Debug for AnyFileHandle
sourceimpl OpenableFile<AnyFile> for AnyFileHandle
impl OpenableFile<AnyFile> for AnyFileHandle
sourcefn replace_with<C: FnOnce(u64)>(
self,
replacement: AnyFile,
manager: &<AnyFile as ManagedFile>::Manager,
publish_callback: C
) -> Result<Self, Error>
fn replace_with<C: FnOnce(u64)>(
self,
replacement: AnyFile,
manager: &<AnyFile as ManagedFile>::Manager,
publish_callback: C
) -> Result<Self, Error>
Replaces the current file with the file located at path
atomically.
sourceimpl OperableFile<AnyFile> for AnyFileHandle
impl OperableFile<AnyFile> for AnyFileHandle
Auto Trait Implementations
impl !RefUnwindSafe for AnyFileHandle
impl Send for AnyFileHandle
impl Sync for AnyFileHandle
impl Unpin for AnyFileHandle
impl !UnwindSafe for AnyFileHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more