pub enum ExternalError<'a> {
C(FfiError),
ActionScript(Option<Object<'a>>),
}Variants§
C(FfiError)
ActionScript(Option<Object<'a>>)
May be None if the thrown object is ignored or unavailable.
Implementations§
Source§impl<'a> ExternalError<'a>
impl<'a> ExternalError<'a>
Sourcepub fn try_from(result: FREResult, thrown: Option<Object<'a>>) -> Option<Self>
pub fn try_from(result: FREResult, thrown: Option<Object<'a>>) -> Option<Self>
Attempts to convert a FREResult into ExternalError.
If the result represents an AS3 error and thrown is Some,
the provided object is used as the error object.
If thrown is None, the thrown object is ignored or unavailable.
When an AS3 throw occurs, the provided object is assumed to be a valid Object.
However, AS3 may throw as3::null.
Trait Implementations§
Source§impl<'a> Clone for ExternalError<'a>
impl<'a> Clone for ExternalError<'a>
Source§fn clone(&self) -> ExternalError<'a>
fn clone(&self) -> ExternalError<'a>
Returns a duplicate 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<'a> Debug for ExternalError<'a>
impl<'a> Debug for ExternalError<'a>
Source§impl Display for ExternalError<'_>
impl Display for ExternalError<'_>
Source§impl From<FfiError> for ExternalError<'_>
impl From<FfiError> for ExternalError<'_>
Source§impl TryFrom<FREResult> for ExternalError<'_>
impl TryFrom<FREResult> for ExternalError<'_>
impl<'a> Copy for ExternalError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExternalError<'a>
impl<'a> RefUnwindSafe for ExternalError<'a>
impl<'a> !Send for ExternalError<'a>
impl<'a> !Sync for ExternalError<'a>
impl<'a> Unpin for ExternalError<'a>
impl<'a> UnsafeUnpin for ExternalError<'a>
impl<'a> UnwindSafe for ExternalError<'a>
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