pub struct MirrorOrder {
pub path: String,
pub upstream: String,
pub prune: bool,
}Expand description
What a sync was asked for.
The upstream travels on the order rather than being re-read by the worker,
and that is the rule JobKind::Order states: a registration can be
changed while its job waits, and a job that quietly fetched from a different
remote than the one the caller asked about would be a mirror nobody could
audit.
Fields§
§path: String<namespace>/<name> — the subject, and therefore the dedup key.
upstream: StringWhere the upstream is, as the registration held it when Sync was
called.
prune: boolDelete local mirrored references the upstream no longer advertises.
Trait Implementations§
Source§impl Clone for MirrorOrder
impl Clone for MirrorOrder
Auto Trait Implementations§
impl Freeze for MirrorOrder
impl RefUnwindSafe for MirrorOrder
impl Send for MirrorOrder
impl Sync for MirrorOrder
impl Unpin for MirrorOrder
impl UnsafeUnpin for MirrorOrder
impl UnwindSafe for MirrorOrder
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request