pub enum Fetch {
Started {
rid: RepoId,
from: NodeId,
refs: RefsToFetch,
timeout: Duration,
},
AlreadyFetching {
rid: RepoId,
from: NodeId,
},
QueueAtCapacity {
rid: RepoId,
from: NodeId,
refs: RefsToFetch,
timeout: Duration,
capacity: usize,
},
Queued {
rid: RepoId,
from: NodeId,
},
}Expand description
Events that occur when a repository is requested to be fetched.
Variants§
Started
The fetch can be started by the caller.
Fields
§
refs: RefsToFetchThe references to be fetched.
AlreadyFetching
The repository is already being fetched from the given node.
QueueAtCapacity
The queue for the given node is at capacity, and can no longer accept any more fetch requests.
Fields
§
refs: RefsToFetchThe references expected to be fetched.
Queued
The fetch was queued for later processing.
Trait Implementations§
impl Eq for Fetch
impl StructuralPartialEq for Fetch
Auto Trait Implementations§
impl Freeze for Fetch
impl RefUnwindSafe for Fetch
impl Send for Fetch
impl Sync for Fetch
impl Unpin for Fetch
impl UnsafeUnpin for Fetch
impl UnwindSafe for Fetch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more