pub struct LocalReviewContext { /* private fields */ }Expand description
Shared state for the local review operations. Handlers borrow the repository for the duration of a single operation; the dedup store is consulted on every state-changing call.
Implementations§
Source§impl LocalReviewContext
impl LocalReviewContext
pub fn new(repo: Arc<Repository>, dedup: Arc<OperationDedupStore>) -> Self
pub fn repo(&self) -> &Repository
pub fn dedup(&self) -> &OperationDedupStore
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LocalReviewContext
impl !UnwindSafe for LocalReviewContext
impl Freeze for LocalReviewContext
impl Send for LocalReviewContext
impl Sync for LocalReviewContext
impl Unpin for LocalReviewContext
impl UnsafeUnpin for LocalReviewContext
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