pub enum AvailabilityScopeError {
UnknownWarehouse(Uuid),
GroupPivot(Uuid),
EmptyItemSet,
DuplicateItem(Uuid),
NegativeHeld(Uuid),
Unwired(&'static str),
Database(Error),
}Expand description
The availability scope read’s typed refusals.
Variants§
UnknownWarehouse(Uuid)
The pivot warehouse does not exist or is soft-deleted under the ambient org scope. Carries the warehouse id.
GroupPivot(Uuid)
The pivot warehouse is a grouping node, not a concrete stock warehouse. Carries the warehouse id.
EmptyItemSet
The item set (or demand list) is empty — a vacuous read that would answer “sold out” over nothing.
DuplicateItem(Uuid)
The same item appears twice in one request. The caller must sum its own per-item quantities before asking.
NegativeHeld(Uuid)
A demand carries a negative held quantity.
Unwired(&'static str)
The port has no adapter wired in this composition — the fail-loud default. No availability number is fabricated, so no surface can render a guessed stock state.
Database(Error)
The database transport.
Trait Implementations§
Source§impl Debug for AvailabilityScopeError
impl Debug for AvailabilityScopeError
Source§impl Display for AvailabilityScopeError
impl Display for AvailabilityScopeError
Source§impl Error for AvailabilityScopeError
impl Error for AvailabilityScopeError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for AvailabilityScopeError
impl !UnwindSafe for AvailabilityScopeError
impl Freeze for AvailabilityScopeError
impl Send for AvailabilityScopeError
impl Sync for AvailabilityScopeError
impl Unpin for AvailabilityScopeError
impl UnsafeUnpin for AvailabilityScopeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more