pub struct QuotaExceededError(pub String);Expand description
Marker for a host failure that should surface to the guest as the built-in
QuotaExceededError subclass rather than a base Error. Return
Err(quota_exceeded_error(...)) from a host-fn body; the register_host_fn wrapper
downcasts for it when converting the Err into a guest throw. The message
is the guest-visible e.message.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Debug for QuotaExceededError
impl Debug for QuotaExceededError
Source§impl Display for QuotaExceededError
impl Display for QuotaExceededError
Source§impl Error for QuotaExceededError
impl Error for QuotaExceededError
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()
Auto Trait Implementations§
impl Freeze for QuotaExceededError
impl RefUnwindSafe for QuotaExceededError
impl Send for QuotaExceededError
impl Sync for QuotaExceededError
impl Unpin for QuotaExceededError
impl UnsafeUnpin for QuotaExceededError
impl UnwindSafe for QuotaExceededError
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