#[repr(C)]pub struct CCustomPacket {
pub type_id: *const c_char,
pub encoding: CCustomEncoding,
pub data_json: *const u8,
pub data_len: usize,
pub metadata: *const CPacketMetadata,
}Expand description
Custom packet payload passed across the C ABI boundary.
data_json points to UTF-8 encoded JSON (not null-terminated).
Fields§
§type_id: *const c_char§encoding: CCustomEncoding§data_json: *const u8§data_len: usize§metadata: *const CPacketMetadataOptional metadata pointer (may be null).
Auto Trait Implementations§
impl Freeze for CCustomPacket
impl RefUnwindSafe for CCustomPacket
impl !Send for CCustomPacket
impl !Sync for CCustomPacket
impl Unpin for CCustomPacket
impl UnwindSafe for CCustomPacket
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