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.
pub fn update_ttl(&self, ttl: u64)
Auto 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
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