Struct polars_io::file_cache::FileCacheEntry
source · pub struct FileCacheEntry(/* private fields */);
Available on crate feature
file_cache
only.Implementations§
source§impl FileCacheEntry
impl FileCacheEntry
pub fn uri(&self) -> Arc<str>
sourcepub fn try_open_assume_latest(&self) -> PolarsResult<File>
pub fn try_open_assume_latest(&self) -> PolarsResult<File>
Directly returns the cached file if it finds one without checking if there is a newer version on the remote. This does not make any API calls if it finds a cached file, otherwise it simply downloads the file.
sourcepub fn try_open_check_latest(&self) -> PolarsResult<File>
pub fn try_open_check_latest(&self) -> PolarsResult<File>
Returns the cached file after ensuring it is up to date against the remote This will always perform at least 1 API call for fetching metadata.
Trait Implementations§
source§impl Clone for FileCacheEntry
impl Clone for FileCacheEntry
source§fn clone(&self) -> FileCacheEntry
fn clone(&self) -> FileCacheEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FileCacheEntry
impl RefUnwindSafe for FileCacheEntry
impl Send for FileCacheEntry
impl Sync for FileCacheEntry
impl Unpin for FileCacheEntry
impl UnwindSafe for FileCacheEntry
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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