Struct CachedFileMetadata
pub struct CachedFileMetadata(pub File, pub Metadata);
Fields
0: File1: Metadata
Trait Implementations
impl CopyRead for CachedFileMetadata
fn properties(&self) -> CopyParams
impl CopyWrite for CachedFileMetadata
fn properties(&self) -> CopyParams
impl Read for CachedFileMetadata
fn read(&mut self, buf: &mut [u8]) -> Result<usize>fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>fn read_buf(&mut self, cursor: BorrowedCursor<'_, u8>) -> Result<()>fn is_read_vectored(&self) -> boolfn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>fn read_to_string(&mut self, buf: &mut String) -> Result<usize>
impl SpecCopy for CachedFileMetadata
fn copy<R: Read + ?Sized, W: Write + ?Sized>(read: &mut R, write: &mut W) -> Result<CopyState>
impl Write for CachedFileMetadata
fn write(&mut self, buf: &[u8]) -> Result<usize>fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize>fn is_write_vectored(&self) -> boolfn flush(&mut self) -> Result<()>
Auto Trait Implementations
impl Freeze for CachedFileMetadata
impl RefUnwindSafe for CachedFileMetadata
impl Send for CachedFileMetadata
impl Sync for CachedFileMetadata
impl Unpin for CachedFileMetadata
impl UnsafeUnpin for CachedFileMetadata
impl UnwindSafe for CachedFileMetadata
Blanket Implementations
impl<R> SpecReadByte for CachedFileMetadata
where
R: Read,
fn spec_read_byte(&mut self) -> Option<Result<u8, Error>>
impl<T> Any for CachedFileMetadata
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CachedFileMetadata
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CachedFileMetadata
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for CachedFileMetadata
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for CachedFileMetadata
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for CachedFileMetadata
impl<T, U> Into<U> for CachedFileMetadata
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CachedFileMetadata
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for CachedFileMetadata
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>