pub struct ReceiveOutcome {
pub unpack_error: Option<UnpackError>,
pub updates: Vec<RefUpdateResult>,
pub hooks: Vec<HookRunRecord>,
pub push_options: Vec<String>,
pub bytes_received: u64,
pub objects_received: u32,
pub post_receive_callback_error: Option<RefUpdateRefusal>,
pub post_update_callback_error: Option<RefUpdateRefusal>,
}Expand description
What a push session did.
Fields§
§unpack_error: Option<UnpackError>Why the pushed pack could not be stored, when it could not.
updates: Vec<RefUpdateResult>One entry per ref update the client requested, in request order.
hooks: Vec<HookRunRecord>Hook runs performed for this push, in execution order.
push_options: Vec<String>Push options delivered to hooks via GIT_PUSH_OPTION_*.
bytes_received: u64Decoded pack bytes read from the client (zero when no pack was sent).
objects_received: u32Object count from the pack header (zero when no pack was sent).
post_receive_callback_error: Option<RefUpdateRefusal>ReceiveHook::post_receive refused after refs were updated.
post_update_callback_error: Option<RefUpdateRefusal>ReceiveHook::post_update refused after refs were updated.
Trait Implementations§
Source§impl Debug for ReceiveOutcome
impl Debug for ReceiveOutcome
Auto Trait Implementations§
impl !RefUnwindSafe for ReceiveOutcome
impl !UnwindSafe for ReceiveOutcome
impl Freeze for ReceiveOutcome
impl Send for ReceiveOutcome
impl Sync for ReceiveOutcome
impl Unpin for ReceiveOutcome
impl UnsafeUnpin for ReceiveOutcome
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