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§
Source§impl Clone for LocalReviewContext
impl Clone for LocalReviewContext
Source§fn clone(&self) -> LocalReviewContext
fn clone(&self) -> LocalReviewContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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