pub struct SavedVcsState {
pub adapter: String,
pub data: Box<dyn Any + Send>,
}Expand description
Opaque saved VCS state for save/restore around apply operations.
Each adapter stores its own state (e.g., Git saves the current branch name,
Perforce saves the current changelist). The state is passed back to
restore_state() after the apply operation completes.
Fields§
§adapter: StringAdapter name that created this state (for safety checks).
data: Box<dyn Any + Send>Opaque state data — only the creating adapter knows how to interpret this.
Auto Trait Implementations§
impl Freeze for SavedVcsState
impl !RefUnwindSafe for SavedVcsState
impl Send for SavedVcsState
impl !Sync for SavedVcsState
impl Unpin for SavedVcsState
impl UnsafeUnpin for SavedVcsState
impl !UnwindSafe for SavedVcsState
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