pub enum BytesPoll {
Pending {
size: Option<Vec2>,
},
Ready {
size: Option<Vec2>,
bytes: Bytes,
mime: Option<String>,
},
}
Expand description
Represents bytes which are 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 RefUnwindSafe for BytesPoll
impl Send for BytesPoll
impl Sync for BytesPoll
impl Unpin for BytesPoll
impl UnwindSafe for BytesPoll
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