pub struct RepositoryState {
pub snapshot: Arc<RepositorySnapshot>,
pub error: Option<Arc<GitError>>,
}Expand description
The retained repository state: the last successful snapshot and the health of the most recent load. A failed load keeps the previous snapshot in place.
Fields§
§snapshot: Arc<RepositorySnapshot>§error: Option<Arc<GitError>>Implementations§
Source§impl RepositoryState
impl RepositoryState
Sourcepub fn error_message(&self) -> Option<String>
pub fn error_message(&self) -> Option<String>
The most recent load failure as a display message, if any.
Trait Implementations§
Source§impl Clone for RepositoryState
impl Clone for RepositoryState
Source§fn clone(&self) -> RepositoryState
fn clone(&self) -> RepositoryState
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 RepositoryState
impl !UnwindSafe for RepositoryState
impl Freeze for RepositoryState
impl Send for RepositoryState
impl Sync for RepositoryState
impl Unpin for RepositoryState
impl UnsafeUnpin for RepositoryState
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