pub struct ReadCheckout<'a> { /* private fields */ }Expand description
A throwaway checkout of HEAD for calls that are only allowed to read.
The shared checkout is where a person, their editor, and any other agent work, and a read-only call is judged on what changed while it ran. Run there, an edit somebody else made in those minutes counted as the call’s: a draft that had only ever read was thrown away because another agent bumped a dependency beside it. Nothing works in this checkout but the calls spar starts in it, so whatever changes in it is theirs.
It holds what HEAD commits, after [loop] setup, and nothing uncommitted.
Dropping it removes it, unless something in it changed that a read-only
call was not allowed to change, in which case it is kept for recovery.
Implementations§
Trait Implementations§
Source§impl Drop for ReadCheckout<'_>
impl Drop for ReadCheckout<'_>
Auto Trait Implementations§
impl<'a> Freeze for ReadCheckout<'a>
impl<'a> RefUnwindSafe for ReadCheckout<'a>
impl<'a> Send for ReadCheckout<'a>
impl<'a> Sync for ReadCheckout<'a>
impl<'a> Unpin for ReadCheckout<'a>
impl<'a> UnsafeUnpin for ReadCheckout<'a>
impl<'a> UnwindSafe for ReadCheckout<'a>
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