#[repr(C)]pub struct QueueConfig {
pub ring_size: u32,
pub max_msg_size: u32,
pub schema_id: u32,
}Expand description
Queue ring buffer configuration.
Used internally by the kernel to manage queue state.
Fields§
§ring_size: u32Ring buffer size (must be a power of 2).
max_msg_size: u32Maximum message size in bytes.
schema_id: u32RVF WIT type identifier for message validation. Zero means no schema validation (raw bytes).
Implementations§
Source§impl QueueConfig
impl QueueConfig
Sourcepub const fn with_schema(
ring_size: u32,
max_msg_size: u32,
schema_id: u32,
) -> Self
pub const fn with_schema( ring_size: u32, max_msg_size: u32, schema_id: u32, ) -> Self
Creates a queue configuration with schema validation.
Trait Implementations§
Source§impl Clone for QueueConfig
impl Clone for QueueConfig
Source§fn clone(&self) -> QueueConfig
fn clone(&self) -> QueueConfig
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 QueueConfig
impl Debug for QueueConfig
Source§impl Default for QueueConfig
impl Default for QueueConfig
Source§impl PartialEq for QueueConfig
impl PartialEq for QueueConfig
impl Copy for QueueConfig
impl Eq for QueueConfig
impl StructuralPartialEq for QueueConfig
Auto Trait Implementations§
impl Freeze for QueueConfig
impl RefUnwindSafe for QueueConfig
impl Send for QueueConfig
impl Sync for QueueConfig
impl Unpin for QueueConfig
impl UnsafeUnpin for QueueConfig
impl UnwindSafe for QueueConfig
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