pub enum ImagePoll {
Pending {
size: Option<Vec2>,
},
Ready {
image: Arc<ColorImage>,
},
}
Expand description
Represents an image which is currently being loaded.
This is similar to std::task::Poll
, but the Pending
variant
contains an optional size
, which may be used during layout to
pre-allocate space the image.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImagePoll
impl RefUnwindSafe for ImagePoll
impl Send for ImagePoll
impl Sync for ImagePoll
impl Unpin for ImagePoll
impl UnwindSafe for ImagePoll
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