#[repr(C)]pub struct RuntimeErrorBuf {
pub phase: RuntimeErrorPhase,
pub kind: RuntimeErrorKind,
pub message_len: usize,
pub message_buf: [u8; 512],
}Expand description
Fixed-size ABI error buffer.
Fields§
§phase: RuntimeErrorPhaseError phase.
kind: RuntimeErrorKindError kind.
message_len: usizeNumber of valid bytes in message_buf.
message_buf: [u8; 512]UTF-8 message bytes truncated to RUNTIME_ERROR_MESSAGE_CAPACITY.
Implementations§
Source§impl RuntimeErrorBuf
impl RuntimeErrorBuf
Sourcepub const fn new(
phase: RuntimeErrorPhase,
kind: RuntimeErrorKind,
_message: RuntimeBytesRef,
) -> Self
pub const fn new( phase: RuntimeErrorPhase, kind: RuntimeErrorKind, _message: RuntimeBytesRef, ) -> Self
Creates an empty error buffer with phase and kind metadata.
Trait Implementations§
Source§impl Clone for RuntimeErrorBuf
impl Clone for RuntimeErrorBuf
Source§fn clone(&self) -> RuntimeErrorBuf
fn clone(&self) -> RuntimeErrorBuf
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 Debug for RuntimeErrorBuf
impl Debug for RuntimeErrorBuf
Source§impl PartialEq for RuntimeErrorBuf
impl PartialEq for RuntimeErrorBuf
impl Copy for RuntimeErrorBuf
impl Eq for RuntimeErrorBuf
impl StructuralPartialEq for RuntimeErrorBuf
Auto Trait Implementations§
impl Freeze for RuntimeErrorBuf
impl RefUnwindSafe for RuntimeErrorBuf
impl Send for RuntimeErrorBuf
impl Sync for RuntimeErrorBuf
impl Unpin for RuntimeErrorBuf
impl UnsafeUnpin for RuntimeErrorBuf
impl UnwindSafe for RuntimeErrorBuf
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