pub enum FfiRouteError {
Failed(String),
}Expand description
Everything that can go wrong opening a chart or finding a route,
flattened to one message for the foreign side. See
enc_store::StoreError and route_find::FindError for what
actually failed; UniFFI’s flat_error only ever lowers a Display
string across the boundary, not the structured original.
Variants§
Trait Implementations§
Source§impl<UT> ConvertError<UT> for FfiRouteError
impl<UT> ConvertError<UT> for FfiRouteError
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for FfiRouteError
impl Debug for FfiRouteError
Source§impl Display for FfiRouteError
impl Display for FfiRouteError
Source§impl From<FindError> for FfiRouteError
impl From<FindError> for FfiRouteError
Source§impl From<StoreError> for FfiRouteError
impl From<StoreError> for FfiRouteError
Source§fn from(error: StoreError) -> Self
fn from(error: StoreError) -> Self
Converts to this type from the input type.
Source§impl<UT> Lift<UT> for FfiRouteError
impl<UT> Lift<UT> for FfiRouteError
Source§impl<UT> Lower<UT> for FfiRouteError
impl<UT> Lower<UT> for FfiRouteError
Source§impl<UT> LowerError<UT> for FfiRouteError
impl<UT> LowerError<UT> for FfiRouteError
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> TypeId<UT> for FfiRouteError
impl<UT> TypeId<UT> for FfiRouteError
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for FfiRouteError
impl RefUnwindSafe for FfiRouteError
impl Send for FfiRouteError
impl Sync for FfiRouteError
impl Unpin for FfiRouteError
impl UnsafeUnpin for FfiRouteError
impl UnwindSafe for FfiRouteError
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more