Struct flipper0::ffi::ProtocolBase

source ·
pub struct ProtocolBase {
Show 13 fields pub data_size: usize, pub name: *const i8, pub manufacturer: *const i8, pub features: u32, pub validate_count: u8, pub alloc: Option<unsafe extern "C" fn() -> *mut c_void>, pub free: Option<unsafe extern "C" fn(*mut c_void)>, pub get_data: Option<unsafe extern "C" fn(*mut c_void) -> *mut u8>, pub decoder: ProtocolDecoder, pub encoder: ProtocolEncoder, pub render_data: Option<unsafe extern "C" fn(*mut c_void, *mut FuriString)>, pub render_brief_data: Option<unsafe extern "C" fn(*mut c_void, *mut FuriString)>, pub write_data: Option<unsafe extern "C" fn(*mut c_void, *mut c_void) -> bool>,
}

Fields

data_size: usizename: *const i8manufacturer: *const i8features: u32validate_count: u8alloc: Option<unsafe extern "C" fn() -> *mut c_void>free: Option<unsafe extern "C" fn(*mut c_void)>get_data: Option<unsafe extern "C" fn(*mut c_void) -> *mut u8>decoder: ProtocolDecoderencoder: ProtocolEncoderrender_data: Option<unsafe extern "C" fn(*mut c_void, *mut FuriString)>render_brief_data: Option<unsafe extern "C" fn(*mut c_void, *mut FuriString)>write_data: Option<unsafe extern "C" fn(*mut c_void, *mut c_void) -> bool>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.