pub struct CacheEntryData {
pub key: Url,
/* private fields */
}
Fields§
§key: Url
Implementations§
Source§impl EntryData
impl EntryData
pub fn new(url: &Url) -> Self
pub fn is_complete(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_running(&self) -> bool
pub fn update_localtm(&mut self)
pub fn set_response(&mut self, response: Response)
pub fn is_outdated(&self, reftm: Instant, max_lt: Duration) -> bool
pub fn get_cache_info(&self) -> Option<&CacheInfo>
pub async fn fill_meta(&mut self) -> Result<()>
pub async fn get_filesize(&mut self) -> Result<u64>
pub fn fill_request(&self, req: RequestBuilder) -> RequestBuilder
pub fn matches(&self, etag: Option<&str>) -> bool
pub fn invalidate(&mut self)
pub async fn read_some<'a>( &mut self, ofs: u64, buf: &'a mut [MaybeUninit<u8>], ) -> Result<&'a [u8]>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for EntryData
impl !RefUnwindSafe for EntryData
impl Send for EntryData
impl Sync for EntryData
impl Unpin for EntryData
impl !UnwindSafe for EntryData
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.