pub struct QueueLayout { /* private fields */ }Implementations§
Source§impl QueueLayout
impl QueueLayout
pub const MAX: Self
Sourcepub const fn fixed<const SUBMISSIONS: u32, const COMPLETIONS: u32>() -> Self
pub const fn fixed<const SUBMISSIONS: u32, const COMPLETIONS: u32>() -> Self
Creates a queue layout validated during compilation.
ⓘ
use dope_core::driver::settings::QueueLayout;
let _ = QueueLayout::fixed::<64, 32>();Sourcepub const fn new(submissions: u32, completions: u32) -> Option<Self>
pub const fn new(submissions: u32, completions: u32) -> Option<Self>
Creates power-of-two backend queues. Submissions cover atomic stream setup and cap at 32,768; completions cover submissions and cap at 65,536.
pub const fn submissions(self) -> u32
pub const fn completions(self) -> u32
Trait Implementations§
Source§impl Clone for QueueLayout
impl Clone for QueueLayout
Source§fn clone(&self) -> QueueLayout
fn clone(&self) -> QueueLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueueLayout
Source§impl Debug for QueueLayout
impl Debug for QueueLayout
impl Eq for QueueLayout
Source§impl PartialEq for QueueLayout
impl PartialEq for QueueLayout
impl StructuralPartialEq for QueueLayout
Auto Trait Implementations§
impl Freeze for QueueLayout
impl RefUnwindSafe for QueueLayout
impl Send for QueueLayout
impl Sync for QueueLayout
impl Unpin for QueueLayout
impl UnsafeUnpin for QueueLayout
impl UnwindSafe for QueueLayout
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