pub struct RefLanding { /* private fields */ }Expand description
Lands by moving the branch the proposals were aimed at (D68).
Implementations§
Source§impl RefLanding
impl RefLanding
Sourcepub fn new(
key: Arc<ActorKey>,
refname: String,
base: &str,
scope: ScopeSource,
) -> Self
pub fn new( key: Arc<ActorKey>, refname: String, base: &str, scope: ScopeSource, ) -> Self
Lands on refname, CAS’d from base and moving forward from
each landing to the next.
base is the value the round was read at. It is the first
landing’s prev, which is what makes a push that beat the round
win: the op is refused, and the queue stops rather than
overwriting somebody’s work with a merge computed against a
branch that has moved.
Trait Implementations§
Source§impl Landing for RefLanding
impl Landing for RefLanding
Auto Trait Implementations§
impl Freeze for RefLanding
impl !RefUnwindSafe for RefLanding
impl Send for RefLanding
impl !Sync for RefLanding
impl Unpin for RefLanding
impl UnsafeUnpin for RefLanding
impl !UnwindSafe for RefLanding
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