pub enum QueueConfigError {
ZeroCapacity(QueueId),
CapacityLimit {
queue: QueueId,
capacity: usize,
},
ZeroWeight,
DuplicateId(QueueId),
Empty,
TooManyQueues,
TotalCapacity(usize),
MissingDefault(QueueId),
}Expand description
Invalid queue layout.
Variants§
ZeroCapacity(QueueId)
Every queue must admit at least one request.
CapacityLimit
One queue is too large for the runtime safety bound.
ZeroWeight
A zero weighted quota would prevent progress.
DuplicateId(QueueId)
The same identifier was configured more than once.
Empty
A link must contain at least one queue.
TooManyQueues
One link contains too many scheduler classes.
TotalCapacity(usize)
Aggregate bounded capacity is excessive.
MissingDefault(QueueId)
The selected default queue does not exist in the layout.
Trait Implementations§
Source§impl Clone for QueueConfigError
impl Clone for QueueConfigError
impl Copy for QueueConfigError
Source§impl Debug for QueueConfigError
impl Debug for QueueConfigError
Source§impl Display for QueueConfigError
impl Display for QueueConfigError
impl Eq for QueueConfigError
Source§impl Error for QueueConfigError
impl Error for QueueConfigError
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<QueueConfigError> for LinkBuildError
impl From<QueueConfigError> for LinkBuildError
Source§fn from(source: QueueConfigError) -> Self
fn from(source: QueueConfigError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for QueueConfigError
impl PartialEq for QueueConfigError
impl StructuralPartialEq for QueueConfigError
Auto Trait Implementations§
impl Freeze for QueueConfigError
impl RefUnwindSafe for QueueConfigError
impl Send for QueueConfigError
impl Sync for QueueConfigError
impl Unpin for QueueConfigError
impl UnsafeUnpin for QueueConfigError
impl UnwindSafe for QueueConfigError
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