pub struct UploadProgress { /* private fields */ }
Implementations§
Source§impl UploadProgress
impl UploadProgress
pub fn new( active: bool, current: usize, started: bool, total: usize, ) -> UploadProgress
pub fn active(&self) -> bool
pub fn set_active(&mut self, value: bool)
pub fn current(&self) -> usize
pub fn set_current(&mut self, value: usize)
pub fn started(&self) -> bool
pub fn set_started(&mut self, value: bool)
pub fn total(&self) -> usize
pub fn set_total(&mut self, value: usize)
Trait Implementations§
Source§impl Clone for UploadProgress
impl Clone for UploadProgress
Source§fn clone(&self) -> UploadProgress
fn clone(&self) -> UploadProgress
Returns a duplicate 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 moreSource§impl Debug for UploadProgress
impl Debug for UploadProgress
Source§impl From<UploadProgress> for JsValue
impl From<UploadProgress> for JsValue
Source§fn from(value: UploadProgress) -> Self
fn from(value: UploadProgress) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for UploadProgress
impl FromWasmAbi for UploadProgress
Source§impl Hash for UploadProgress
impl Hash for UploadProgress
Source§impl IntoWasmAbi for UploadProgress
impl IntoWasmAbi for UploadProgress
Source§impl LongRefFromWasmAbi for UploadProgress
impl LongRefFromWasmAbi for UploadProgress
Source§impl OptionFromWasmAbi for UploadProgress
impl OptionFromWasmAbi for UploadProgress
Source§impl OptionIntoWasmAbi for UploadProgress
impl OptionIntoWasmAbi for UploadProgress
Source§impl Ord for UploadProgress
impl Ord for UploadProgress
Source§fn cmp(&self, other: &UploadProgress) -> Ordering
fn cmp(&self, other: &UploadProgress) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UploadProgress
impl PartialEq for UploadProgress
Source§impl PartialOrd for UploadProgress
impl PartialOrd for UploadProgress
Source§impl RefFromWasmAbi for UploadProgress
impl RefFromWasmAbi for UploadProgress
Source§type Anchor = RcRef<UploadProgress>
type Anchor = RcRef<UploadProgress>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for UploadProgress
impl RefMutFromWasmAbi for UploadProgress
Source§impl TryFromJsValue for UploadProgress
impl TryFromJsValue for UploadProgress
Source§impl VectorFromWasmAbi for UploadProgress
impl VectorFromWasmAbi for UploadProgress
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[UploadProgress]>
Source§impl VectorIntoJsValue for UploadProgress
impl VectorIntoJsValue for UploadProgress
fn vector_into_jsvalue(vector: Box<[UploadProgress]>) -> JsValue
Source§impl VectorIntoWasmAbi for UploadProgress
impl VectorIntoWasmAbi for UploadProgress
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[UploadProgress]>) -> Self::Abi
Source§impl WasmDescribeVector for UploadProgress
impl WasmDescribeVector for UploadProgress
impl Copy for UploadProgress
impl Eq for UploadProgress
impl StructuralPartialEq for UploadProgress
impl SupportsConstructor for UploadProgress
impl SupportsInstanceProperty for UploadProgress
impl SupportsStaticProperty for UploadProgress
Auto Trait Implementations§
impl Freeze for UploadProgress
impl RefUnwindSafe for UploadProgress
impl Send for UploadProgress
impl Sync for UploadProgress
impl Unpin for UploadProgress
impl UnwindSafe for UploadProgress
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§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.