Enum ruwren::ForeignSendError
source · pub enum ForeignSendError {
NoForeignClass,
NoWrenClass,
NoMemory,
ClassMismatch,
}
Expand description
Errors that can happen when sending a foreign object to Wren
Variants§
NoForeignClass
No [‘RuntimeClass’] exists in the specfied module with the given name
NoWrenClass
No Wrne declaration of the foreign class was made
NoMemory
Ran out of memory to allocate the class
ClassMismatch
The type of the [’RuntimeClass] [
ClassObject`] differes from the given object
Trait Implementations§
source§impl Clone for ForeignSendError
impl Clone for ForeignSendError
source§fn clone(&self) -> ForeignSendError
fn clone(&self) -> ForeignSendError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ForeignSendError
impl Debug for ForeignSendError
source§impl Display for ForeignSendError
impl Display for ForeignSendError
source§impl Error for ForeignSendError
impl Error for ForeignSendError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq for ForeignSendError
impl PartialEq for ForeignSendError
source§fn eq(&self, other: &ForeignSendError) -> bool
fn eq(&self, other: &ForeignSendError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ForeignSendError
impl Eq for ForeignSendError
impl StructuralEq for ForeignSendError
impl StructuralPartialEq for ForeignSendError
Auto Trait Implementations§
impl RefUnwindSafe for ForeignSendError
impl Send for ForeignSendError
impl Sync for ForeignSendError
impl Unpin for ForeignSendError
impl UnwindSafe for ForeignSendError
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