Struct asyncgit::remote_progress::RemoteProgress
source · pub struct RemoteProgress {
pub state: RemoteProgressState,
pub progress: ProgressPercent,
}
Expand description
Fields§
§state: RemoteProgressState
§progress: ProgressPercent
Implementations§
source§impl RemoteProgress
impl RemoteProgress
sourcepub fn new(state: RemoteProgressState, current: usize, total: usize) -> Self
pub fn new(state: RemoteProgressState, current: usize, total: usize) -> Self
sourcepub const fn get_progress_percent(&self) -> u8
pub const fn get_progress_percent(&self) -> u8
Trait Implementations§
source§impl Clone for RemoteProgress
impl Clone for RemoteProgress
source§fn clone(&self) -> RemoteProgress
fn clone(&self) -> RemoteProgress
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 moreAuto Trait Implementations§
impl RefUnwindSafe for RemoteProgress
impl Send for RemoteProgress
impl Sync for RemoteProgress
impl Unpin for RemoteProgress
impl UnwindSafe for RemoteProgress
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<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more