pub struct FileSlots { /* private fields */ }Expand description
A fixed-file layout representable by every backend target table.
Implementations§
Source§impl FileSlots
impl FileSlots
Sourcepub const fn fixed<const ACCEPT: u32, const OUTBOUND: u32>() -> Self
pub const fn fixed<const ACCEPT: u32, const OUTBOUND: u32>() -> Self
Creates a fixed-file layout validated during compilation.
ⓘ
use dope_core::driver::settings::FileSlots;
let _ = FileSlots::fixed::<16, { u32::MAX }>();Sourcepub const fn new(accept: u32, outbound: u32) -> Option<Self>
pub const fn new(accept: u32, outbound: u32) -> Option<Self>
Creates independent accept and outbound domains in one fixed-file table.
pub const fn capacity(self) -> u32
pub const fn accept(self) -> u32
pub const fn outbound(self) -> u32
Trait Implementations§
impl Copy for FileSlots
impl Eq for FileSlots
impl StructuralPartialEq for FileSlots
Auto Trait Implementations§
impl Freeze for FileSlots
impl RefUnwindSafe for FileSlots
impl Send for FileSlots
impl Sync for FileSlots
impl Unpin for FileSlots
impl UnsafeUnpin for FileSlots
impl UnwindSafe for FileSlots
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