pub struct PushOutcome {
pub commands: Vec<RefCommand>,
pub statuses: Vec<RefStatus>,
pub unnameable: Vec<UnnameableRef>,
pub push_options: Vec<String>,
pub pack: Option<IndexedPack>,
pub pack_bytes: Option<u64>,
pub new_objects: Result<Vec<ObjectId>, String>,
pub atomic: bool,
pub unpack: Result<(), String>,
}Expand description
Everything one push did.
Fields§
§commands: Vec<RefCommand>The commands as sent.
statuses: Vec<RefStatus>One status per command, in the same order.
unnameable: Vec<UnnameableRef>Command lines refused for their reference name, which therefore have
no RefCommand to carry a status. See UnnameableRef.
push_options: Vec<String>push-option lines, if the capability was negotiated.
pack: Option<IndexedPack>The indexed pack, or None when the push was deletions only.
pack_bytes: Option<u64>Packfile bytes the client sent, counted off the wire. See
PushFacts::pack_bytes.
new_objects: Result<Vec<ObjectId>, String>The objects the push introduced, or why they are unknown. Same value the
gates saw; see PushFacts::new_objects.
atomic: boolWhether the client asked for --atomic.
unpack: Result<(), String>What the client was told about unpacking: Ok or a one-line reason.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PushOutcome
impl RefUnwindSafe for PushOutcome
impl Send for PushOutcome
impl Sync for PushOutcome
impl Unpin for PushOutcome
impl UnsafeUnpin for PushOutcome
impl UnwindSafe for PushOutcome
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