pub(super) struct ImageLoadQueue {
pub pending: Vec<ImageFetchReq>,
pub results: Vec<(String, DecodedImage)>,
pub active_workers: usize,
}Fields§
§pending: Vec<ImageFetchReq>フェッチ待ちの画像 src キー(URL またはパス)
results: Vec<(String, DecodedImage)>デコード完了した (src_key, decoded_image)
active_workers: usize【2026-08-04】稼働中のワーカースレッド数。
以前は thread_active: bool でワーカーが 1 本だけだった。
画像は通信が重く、1 枚取っている間は同じキューの後続が
一切進まない(実測: ギャラリー画像 3 枚が alt テキストのまま)。
通信待ちの間はスケジューラへ譲るので、複数本走らせれば
重い 1 枚が他を止めなくなる。
Auto Trait Implementations§
impl Freeze for ImageLoadQueue
impl RefUnwindSafe for ImageLoadQueue
impl Send for ImageLoadQueue
impl Sync for ImageLoadQueue
impl Unpin for ImageLoadQueue
impl UnsafeUnpin for ImageLoadQueue
impl UnwindSafe for ImageLoadQueue
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