pub enum FfiError {
InvalidTreeJson(String),
InvalidSelectorJson(String),
}Expand description
FFI error variants (mirror UDL [Error] enum).
Variants§
InvalidTreeJson(String)
tree_json failed JSON parse to A11yNode.
InvalidSelectorJson(String)
selector_json failed JSON parse to Selector.
Trait Implementations§
§impl<UT> ConvertError<UT> for FfiError
impl<UT> ConvertError<UT> for FfiError
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Error for FfiError
impl Error for FfiError
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()
§impl<UT> Lift<UT> for FfiError
impl<UT> Lift<UT> for FfiError
type FfiType = RustBuffer
fn try_read(buf: &mut &[u8]) -> Result<Self>
fn try_lift(v: RustBuffer) -> Result<Self>
Source§fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
Convenience method
§impl<UT> Lower<UT> for FfiError
impl<UT> Lower<UT> for FfiError
type FfiType = RustBuffer
fn write(obj: Self, buf: &mut Vec<u8>)
fn lower(obj: Self) -> RustBuffer
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Convenience method
§impl<UT> LowerError<UT> for FfiError
impl<UT> LowerError<UT> for FfiError
§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
§impl<UT> TypeId<UT> for FfiError
impl<UT> TypeId<UT> for FfiError
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for FfiError
impl RefUnwindSafe for FfiError
impl Send for FfiError
impl Sync for FfiError
impl Unpin for FfiError
impl UnsafeUnpin for FfiError
impl UnwindSafe for FfiError
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