pub struct Snapshots<'a> { /* private fields */ }Implementations§
Source§impl<'a> Snapshots<'a>
impl<'a> Snapshots<'a>
pub fn put(&self, url: &str, html: &[u8]) -> Result<SnapshotPut>
pub fn put_at( &self, url: &str, html: &[u8], at: SystemTime, ) -> Result<SnapshotPut>
Sourcepub fn list(
&self,
url: &str,
range: impl RangeBounds<SystemTime>,
) -> Result<Vec<SnapshotMeta>>
pub fn list( &self, url: &str, range: impl RangeBounds<SystemTime>, ) -> Result<Vec<SnapshotMeta>>
某个 URL 在时间范围内的快照,按时间先后排列。
Auto Trait Implementations§
impl<'a> Freeze for Snapshots<'a>
impl<'a> RefUnwindSafe for Snapshots<'a>
impl<'a> Send for Snapshots<'a>
impl<'a> Sync for Snapshots<'a>
impl<'a> Unpin for Snapshots<'a>
impl<'a> UnsafeUnpin for Snapshots<'a>
impl<'a> UnwindSafe for Snapshots<'a>
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