pub enum ExternalError<'a> {
C(FfiError),
ActionScript(ActionScriptError<'a>),
}Variants§
C(FfiError)
ActionScript(ActionScriptError<'a>)
Implementations§
Source§impl<'a> ExternalError<'a>
impl<'a> ExternalError<'a>
Sourcepub fn try_from(
result: FREResult,
thrown: Option<Object<'a>>,
) -> Result<Self, ()>
pub fn try_from( result: FREResult, thrown: Option<Object<'a>>, ) -> Result<Self, ()>
Attempts to convert a FREResult into ExternalError.
If the result represents an ActionScript error and thrown is Some,
the provided object is used as the error value.
If thrown is None, the thrown object is ignored or assumed unavailable.
§Notes
When an ActionScript throw occurs, the provided object is assumed to be a valid FREObject.
However, ActionScript may throw [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<'a> From<ActionScriptError<'a>> for ExternalError<'a>
impl<'a> From<ActionScriptError<'a>> for ExternalError<'a>
Source§fn from(value: ActionScriptError<'a>) -> Self
fn from(value: ActionScriptError<'a>) -> Self
Converts to this type from the input type.
Source§impl From<FfiError> for ExternalError<'static>
impl From<FfiError> for ExternalError<'static>
Source§impl<'a> PartialEq for ExternalError<'a>
impl<'a> PartialEq for ExternalError<'a>
Source§impl TryFrom<FREResult> for ExternalError<'static>
impl TryFrom<FREResult> for ExternalError<'static>
impl<'a> Copy for ExternalError<'a>
impl<'a> Eq for ExternalError<'a>
impl<'a> StructuralPartialEq 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