pub enum LoadResult {
Success {
fragment_id: FragmentId,
data: Bytes,
duration: Duration,
from_cache: bool,
},
Failed {
fragment_id: FragmentId,
error: NetworkError,
},
}Expand description
Result of loading a fragment
Variants§
Implementations§
Source§impl LoadResult
impl LoadResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if successful
Sourcepub fn fragment_id(&self) -> FragmentId
pub fn fragment_id(&self) -> FragmentId
Get fragment ID
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LoadResult
impl !RefUnwindSafe for LoadResult
impl Send for LoadResult
impl Sync for LoadResult
impl Unpin for LoadResult
impl !UnwindSafe for LoadResult
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