pub struct ImageChunkEvent {
pub cumulative_bytes_loaded: usize,
pub expected_total_bytes: Option<usize>,
}Expand description
An immutable notification of image bytes that have been incrementally loaded. Flutter
ImageChunkEvent.
A provider that reads a body in pieces reports one after each piece, as a network image does for its bytes over the wire; a file image, as Flutter’s, reports none. The expected total is what lets a listener show how far along the load is; it is not the decoded image’s size.
Fields§
§cumulative_bytes_loaded: usizeThe bytes received so far.
expected_total_bytes: Option<usize>How many bytes the whole image is expected to take, when the source said.
Trait Implementations§
Source§impl Clone for ImageChunkEvent
impl Clone for ImageChunkEvent
Source§fn clone(&self) -> ImageChunkEvent
fn clone(&self) -> ImageChunkEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImageChunkEvent
Source§impl Debug for ImageChunkEvent
impl Debug for ImageChunkEvent
impl Eq for ImageChunkEvent
Source§impl PartialEq for ImageChunkEvent
impl PartialEq for ImageChunkEvent
impl StructuralPartialEq for ImageChunkEvent
Auto Trait Implementations§
impl Forget for ImageChunkEvent
impl Freeze for ImageChunkEvent
impl Move for ImageChunkEvent
impl RefUnwindSafe for ImageChunkEvent
impl Send for ImageChunkEvent
impl Sync for ImageChunkEvent
impl Unpin for ImageChunkEvent
impl UnsafeUnpin for ImageChunkEvent
impl UnwindSafe for ImageChunkEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.