pub enum PlacementRejection {
Unsupported {
placement: PlacementClass,
manifest_support: SupportState,
},
PayloadTooLarge {
placement: PlacementClass,
byte_size: u64,
max_bytes: u64,
},
}Expand description
Why a particular AcceptablePlacement was rejected during
per-payload placement evaluation.
Variants§
Unsupported
The adapter’s manifest does not declare this placement at
all (or declares it as Unavailable).
PayloadTooLarge
The adapter declares the placement but the payload’s
byte_size exceeds the manifest’s max_bytes for that
placement.
Implementations§
Source§impl PlacementRejection
impl PlacementRejection
pub fn placement(&self) -> PlacementClass
Trait Implementations§
Source§impl Clone for PlacementRejection
impl Clone for PlacementRejection
Source§fn clone(&self) -> PlacementRejection
fn clone(&self) -> PlacementRejection
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 moreSource§impl Debug for PlacementRejection
impl Debug for PlacementRejection
Source§impl PartialEq for PlacementRejection
impl PartialEq for PlacementRejection
Source§fn eq(&self, other: &PlacementRejection) -> bool
fn eq(&self, other: &PlacementRejection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PlacementRejection
impl StructuralPartialEq for PlacementRejection
Auto Trait Implementations§
impl Freeze for PlacementRejection
impl RefUnwindSafe for PlacementRejection
impl Send for PlacementRejection
impl Sync for PlacementRejection
impl Unpin for PlacementRejection
impl UnsafeUnpin for PlacementRejection
impl UnwindSafe for PlacementRejection
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.