#[repr(C)]pub struct GoFfiResult {
pub code: ResultCode,
pub data_ptr: usize,
}Fields§
§code: ResultCode§data_ptr: usizeImplementations§
Source§impl GoFfiResult
impl GoFfiResult
pub fn from_ok<T>(data: T) -> Self
pub unsafe fn consume_data<T>(&mut self) -> Option<T>
Trait Implementations§
Source§impl Debug for GoFfiResult
impl Debug for GoFfiResult
Source§impl<T: Default> From<GoFfiResult> for ABIResult<T>
impl<T: Default> From<GoFfiResult> for ABIResult<T>
Source§fn from(value: GoFfiResult) -> Self
fn from(value: GoFfiResult) -> Self
Converts to this type from the input type.
Source§impl<T: TryIntoBytes> From<Result<T, ResultMsg>> for GoFfiResult
impl<T: TryIntoBytes> From<Result<T, ResultMsg>> for GoFfiResult
Source§impl FromResidual<Result<Infallible, ResultMsg>> for GoFfiResult
impl FromResidual<Result<Infallible, ResultMsg>> for GoFfiResult
Source§fn from_residual(residual: Result<Infallible, ResultMsg>) -> Self
fn from_residual(residual: Result<Infallible, ResultMsg>) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2)Constructs the type from a compatible
Residual type. Read moreAuto Trait Implementations§
impl Freeze for GoFfiResult
impl RefUnwindSafe for GoFfiResult
impl Send for GoFfiResult
impl Sync for GoFfiResult
impl Unpin for GoFfiResult
impl UnwindSafe for GoFfiResult
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