pub struct ThumbnailWorker {
client: Client,
}Expand description
Worker for downloading thumbnails from Jellyfin server
Fields§
§client: ClientImplementations§
Source§impl ThumbnailWorker
impl ThumbnailWorker
Sourcepub async fn download(
&self,
url: &str,
) -> Result<Vec<u8>, ThumbnailDownloadError>
pub async fn download( &self, url: &str, ) -> Result<Vec<u8>, ThumbnailDownloadError>
Download a thumbnail from URL
Sourcepub async fn download_with_retry(
&self,
url: &str,
max_retries: u32,
) -> Result<Vec<u8>, ThumbnailDownloadError>
pub async fn download_with_retry( &self, url: &str, max_retries: u32, ) -> Result<Vec<u8>, ThumbnailDownloadError>
Download with retry logic
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThumbnailWorker
impl !RefUnwindSafe for ThumbnailWorker
impl Send for ThumbnailWorker
impl Sync for ThumbnailWorker
impl Unpin for ThumbnailWorker
impl UnsafeUnpin for ThumbnailWorker
impl !UnwindSafe for ThumbnailWorker
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>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.