pub enum RegionCreateError {
ParentNotFound(RegionId),
ParentClosed(RegionId),
ParentAtCapacity {
region: RegionId,
limit: usize,
live: usize,
},
ResourcePressure {
requested_priority: RegionPriority,
reason: String,
},
}Expand description
Errors that can occur when creating a child region.
Variants§
ParentNotFound(RegionId)
The parent region does not exist.
ParentClosed(RegionId)
The parent region is closed or draining and cannot accept new children.
ParentAtCapacity
The parent region has reached its admission limit for children.
Fields
ResourcePressure
Resource pressure prevents creating new regions.
Fields
§
requested_priority: RegionPriorityThe priority requested for the new region.
Trait Implementations§
Source§impl Clone for RegionCreateError
impl Clone for RegionCreateError
Source§fn clone(&self) -> RegionCreateError
fn clone(&self) -> RegionCreateError
Returns a duplicate of the value. Read more
1.0.0 · 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 RegionCreateError
impl Debug for RegionCreateError
Source§impl Display for RegionCreateError
impl Display for RegionCreateError
Source§impl Error for RegionCreateError
impl Error for RegionCreateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<RegionCreateError> for SupervisorSpawnError
impl From<RegionCreateError> for SupervisorSpawnError
Source§fn from(value: RegionCreateError) -> Self
fn from(value: RegionCreateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RegionCreateError
impl PartialEq for RegionCreateError
impl Eq for RegionCreateError
impl StructuralPartialEq for RegionCreateError
Auto Trait Implementations§
impl Freeze for RegionCreateError
impl RefUnwindSafe for RegionCreateError
impl Send for RegionCreateError
impl Sync for RegionCreateError
impl Unpin for RegionCreateError
impl UnsafeUnpin for RegionCreateError
impl UnwindSafe for RegionCreateError
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).