pub enum UserdataError {
NotUserdata,
Unregistered,
Memory,
}Expand description
Why a userdata operation of a NativeCall refused. Unstable API.
Variants§
NotUserdata
The value is not a full userdata of the kind asked for.
Unregistered
The host type is not registered with the runtime’s registry.
Memory
The logical-heap quota, or the payload or user-value bound, refused
it. A native that returns NativeOutcome::Fault after this raises
a memory error.
Trait Implementations§
Source§impl Clone for UserdataError
impl Clone for UserdataError
impl Copy for UserdataError
Source§impl Debug for UserdataError
impl Debug for UserdataError
impl Eq for UserdataError
Source§impl PartialEq for UserdataError
impl PartialEq for UserdataError
impl StructuralPartialEq for UserdataError
Auto Trait Implementations§
impl Freeze for UserdataError
impl RefUnwindSafe for UserdataError
impl Send for UserdataError
impl Sync for UserdataError
impl Unpin for UserdataError
impl UnsafeUnpin for UserdataError
impl UnwindSafe for UserdataError
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