#[repr(C)]pub struct NativeAbiCallResponse {
pub bytes: NativeAbiOwnedBytes,
pub error: *mut NativeAbiError,
}Expand description
Result of a manifest or call entry: either owned bytes or an error.
Fields§
§bytes: NativeAbiOwnedBytesSuccess payload bytes; empty when error is set.
error: *mut NativeAbiErrorFailure pointer, or null on success.
Implementations§
Source§impl NativeAbiCallResponse
impl NativeAbiCallResponse
Sourcepub const fn success(bytes: NativeAbiOwnedBytes) -> Self
pub const fn success(bytes: NativeAbiOwnedBytes) -> Self
Builds a successful response carrying the given bytes.
Sourcepub const fn failure(error: *mut NativeAbiError) -> Self
pub const fn failure(error: *mut NativeAbiError) -> Self
Builds a failed response carrying the given error pointer.
Auto Trait Implementations§
impl !Send for NativeAbiCallResponse
impl !Sync for NativeAbiCallResponse
impl Freeze for NativeAbiCallResponse
impl RefUnwindSafe for NativeAbiCallResponse
impl Unpin for NativeAbiCallResponse
impl UnsafeUnpin for NativeAbiCallResponse
impl UnwindSafe for NativeAbiCallResponse
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