#[non_exhaustive]pub enum PromisorRejection {
PolicyNone,
UnknownRemote,
UrlMismatch {
configured: String,
},
FieldMissing(PromisorField),
FieldMismatch(PromisorField),
NotPartialFetch,
}Expand description
Why an advertised promisor remote was not accepted.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PolicyNone
promisor.acceptFromServer is none (or unset).
UnknownRemote
No local promisor remote has the advertised name.
UrlMismatch
A local remote has the name but a different URL (knownUrl policy).
FieldMissing(PromisorField)
A promisor.checkFields field was not advertised or is not set locally.
FieldMismatch(PromisorField)
A promisor.checkFields field differs between the advertisement and local config.
NotPartialFetch
The fetch is not a partial fetch, so the client cannot do without the objects the server would leave out.
Trait Implementations§
Source§impl Clone for PromisorRejection
impl Clone for PromisorRejection
Source§impl Debug for PromisorRejection
impl Debug for PromisorRejection
impl Eq for PromisorRejection
Source§impl PartialEq for PromisorRejection
impl PartialEq for PromisorRejection
impl StructuralPartialEq for PromisorRejection
Auto Trait Implementations§
impl Freeze for PromisorRejection
impl RefUnwindSafe for PromisorRejection
impl Send for PromisorRejection
impl Sync for PromisorRejection
impl Unpin for PromisorRejection
impl UnsafeUnpin for PromisorRejection
impl UnwindSafe for PromisorRejection
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§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.