Struct PixelflowStatus
#[repr(C)]pub struct PixelflowStatus {
pub size: u32,
pub version: u32,
pub status_code: i32,
pub category: PixelflowErrorCategory,
pub error_code: PixelflowStringView,
pub message: PixelflowStringView,
pub reserved: [usize; 4],
}Expand description
Structured ABI status returned by plugin and host callbacks.
Fields§
§size: u32Struct size in bytes.
version: u32ABI version used by this struct.
status_code: i32Zero means success; non-zero means failure.
category: PixelflowErrorCategoryStructured error category.
error_code: PixelflowStringViewStable dotted error code.
message: PixelflowStringViewHuman-readable message.
reserved: [usize; 4]Reserved fields for future compatible extension.
Implementations§
§impl PixelflowStatus
impl PixelflowStatus
pub const fn ok() -> PixelflowStatus
pub const fn ok() -> PixelflowStatus
Returns success status.
pub const fn plugin_error(
code: &'static str,
message: &'static str,
) -> PixelflowStatus
pub const fn plugin_error( code: &'static str, message: &'static str, ) -> PixelflowStatus
Returns plugin failure status with static diagnostic strings.
Trait Implementations§
§impl Clone for PixelflowStatus
impl Clone for PixelflowStatus
§fn clone(&self) -> PixelflowStatus
fn clone(&self) -> PixelflowStatus
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 more§impl Debug for PixelflowStatus
impl Debug for PixelflowStatus
§impl PartialEq for PixelflowStatus
impl PartialEq for PixelflowStatus
impl Copy for PixelflowStatus
impl Eq for PixelflowStatus
impl StructuralPartialEq for PixelflowStatus
Auto Trait Implementations§
impl Freeze for PixelflowStatus
impl RefUnwindSafe for PixelflowStatus
impl !Send for PixelflowStatus
impl !Sync for PixelflowStatus
impl Unpin for PixelflowStatus
impl UnsafeUnpin for PixelflowStatus
impl UnwindSafe for PixelflowStatus
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