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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)