pub struct CASMode { /* private fields */ }Expand description
The compare-and-set form: p4 [g-opts] counter --from oldvalue --to newvalue countername.
Sets countername to newvalue only if its current value is oldvalue.
A counter that has never been set or that has been deleted cannot be set
using this form.
Trait Implementations§
impl Eq for CASMode
Source§impl ExclusiveOption for CASMode
Available on non-crate feature lt2016_1 only.
impl ExclusiveOption for CASMode
Available on non-crate feature
lt2016_1 only.Source§fn inject_args(&self, command: &mut Command)
fn inject_args(&self, command: &mut Command)
Inject the CLI arguments corresponding to this selection into
command.impl StructuralPartialEq for CASMode
Auto Trait Implementations§
impl Freeze for CASMode
impl RefUnwindSafe for CASMode
impl Send for CASMode
impl Sync for CASMode
impl Unpin for CASMode
impl UnsafeUnpin for CASMode
impl UnwindSafe for CASMode
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