pub enum BuyResult {
Success {
total_cost: u32,
},
NotEnoughMoney,
BagFull,
InvalidItem,
}Expand description
Outcome of a buy attempt, reported by MartBackend::commit_buy.
Variants§
Trait Implementations§
impl Copy for BuyResult
impl Eq for BuyResult
impl StructuralPartialEq for BuyResult
Auto Trait Implementations§
impl Freeze for BuyResult
impl RefUnwindSafe for BuyResult
impl Send for BuyResult
impl Sync for BuyResult
impl Unpin for BuyResult
impl UnsafeUnpin for BuyResult
impl UnwindSafe for BuyResult
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