pub struct ResetOpts {
pub target: String,
pub mode: ResetMode,
pub cancel_token: Option<Arc<AtomicBool>>,
}Expand description
Options for reset operation
Fields§
§target: StringTarget commit (hash, ref, or symbolic name like “HEAD~1”)
mode: ResetModeReset mode
cancel_token: Option<Arc<AtomicBool>>Optional cancellation token for graceful abort
When set to true, operation will abort and return GitError::Aborted
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResetOpts
impl RefUnwindSafe for ResetOpts
impl Send for ResetOpts
impl Sync for ResetOpts
impl Unpin for ResetOpts
impl UnwindSafe for ResetOpts
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