pub enum AdaptiveError {
TooManyProducers,
TooManyConsumers,
GrowthFailed,
}Expand description
Error type for AdaptiveRing registration / morph operations.
Variants§
TooManyProducers
register_producer refused: a caller-declared contract
ceiling (AdaptiveRing::with_contract) or the substrate
slot ceiling. Never returned by the unpinned default below
the substrate ceiling - registration grows the ring instead.
TooManyConsumers
register_consumer refused: same two cases on the consumer
axis.
GrowthFailed
Producer registration claimed a slot but creating / opening the grown backing failed (I/O); the slot was released.
Trait Implementations§
Source§impl Clone for AdaptiveError
impl Clone for AdaptiveError
Source§fn clone(&self) -> AdaptiveError
fn clone(&self) -> AdaptiveError
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 moreimpl Copy for AdaptiveError
Source§impl Debug for AdaptiveError
impl Debug for AdaptiveError
impl Eq for AdaptiveError
Source§impl From<AdaptiveError> for CapacityMorphError
impl From<AdaptiveError> for CapacityMorphError
Source§fn from(e: AdaptiveError) -> Self
fn from(e: AdaptiveError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AdaptiveError
impl PartialEq for AdaptiveError
impl StructuralPartialEq for AdaptiveError
Auto Trait Implementations§
impl Freeze for AdaptiveError
impl RefUnwindSafe for AdaptiveError
impl Send for AdaptiveError
impl Sync for AdaptiveError
impl Unpin for AdaptiveError
impl UnsafeUnpin for AdaptiveError
impl UnwindSafe for AdaptiveError
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