pub enum TexturePoll {
Pending {
size: Option<Vec2>,
},
Ready {
texture: SizedTexture,
},
}
Expand description
Represents a texture 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§
Implementations§
Trait Implementations§
Source§impl Clone for TexturePoll
impl Clone for TexturePoll
Source§fn clone(&self) -> TexturePoll
fn clone(&self) -> TexturePoll
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 moreimpl Copy for TexturePoll
Auto Trait Implementations§
impl Freeze for TexturePoll
impl RefUnwindSafe for TexturePoll
impl Send for TexturePoll
impl Sync for TexturePoll
impl Unpin for TexturePoll
impl UnwindSafe for TexturePoll
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