pub struct UrlPreviewGenerator {
pub cache: Cache,
pub cache_strategy: CacheStrategy,
pub fetcher: Fetcher,
/* private fields */
}
Fields§
§cache: Cache
§cache_strategy: CacheStrategy
§fetcher: Fetcher
Implementations§
Source§impl UrlPreviewGenerator
impl UrlPreviewGenerator
pub fn new(cache_capacity: usize, cache_strategy: CacheStrategy) -> Self
pub fn new_with_fetcher( cache_capacity: usize, cache_strategy: CacheStrategy, fetcher: Fetcher, ) -> Self
Trait Implementations§
Source§impl Clone for UrlPreviewGenerator
impl Clone for UrlPreviewGenerator
Source§fn clone(&self) -> UrlPreviewGenerator
fn clone(&self) -> UrlPreviewGenerator
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 UrlPreviewGenerator
impl !RefUnwindSafe for UrlPreviewGenerator
impl Send for UrlPreviewGenerator
impl Sync for UrlPreviewGenerator
impl Unpin for UrlPreviewGenerator
impl !UnwindSafe for UrlPreviewGenerator
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