Struct git_protocol::RemoteProgress [−][src]
pub struct RemoteProgress<'a> {
pub action: &'a BStr,
pub percent: Option<u32>,
pub step: Option<usize>,
pub max: Option<usize>,
}
Expand description
The information usually found in remote progress messages as sent by a git server during fetch, clone and push operations.
Fields
action: &'a BStr
The name of the action, like “clone”.
percent: Option<u32>
The percentage to indicate progress, between 0 and 100.
step: Option<usize>
The amount of items already processed.
max: Option<usize>
The maximum expected amount of items. step
/ max
* 100 = percent
.
Implementations
Parse the progress from a typical git progress line
as sent by the remote.
Parse text
, which is interpreted as error if is_error
is true, as RemoteProgress
and call the respective
methods on the given progress
instance.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for RemoteProgress<'a>
impl<'a> Send for RemoteProgress<'a>
impl<'a> Sync for RemoteProgress<'a>
impl<'a> Unpin for RemoteProgress<'a>
impl<'a> UnwindSafe for RemoteProgress<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more