pub struct Cancel(/* private fields */);Expand description
The word a transfer’s git work hears when its client is gone.
Set by serve_until_session_ends when the grace runs out, and by a
transport whose serve future is dropped. The git work checks it at its safe
points — every read from and write to the client, and before it opens the
store — and ends there. It is never checked between the ref updates of a
receive-pack transaction: those land together or not at all.
Cheap to clone; every clone is the same flag.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cancel
impl RefUnwindSafe for Cancel
impl Send for Cancel
impl Sync for Cancel
impl Unpin for Cancel
impl UnsafeUnpin for Cancel
impl UnwindSafe for Cancel
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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