pub struct Receive { /* private fields */ }Implementations§
Source§impl Receive
impl Receive
pub const DEFAULT: Self
pub const MIN_DATAGRAM_BUFFER_LEN: u32 = datagram::SlotLen::MIN_BYTES
Sourcepub const fn fixed<const ENTRIES: u16, const LEN: u32>() -> Self
pub const fn fixed<const ENTRIES: u16, const LEN: u32>() -> Self
Creates a receive-buffer layout validated during compilation.
ⓘ
use dope_core::driver::settings::Receive;
let _ = Receive::fixed::<1, 4096>();Sourcepub const fn new(entries: u16, len: u32) -> Option<Self>
pub const fn new(entries: u16, len: u32) -> Option<Self>
Creates a cross-backend layout with at least two power-of-two slots.
Slot length must fit transfer fields and total allocation in isize.
Sourcepub const fn for_datagram_payload(
entries: u16,
payload_len: u32,
) -> Option<Self>
pub const fn for_datagram_payload( entries: u16, payload_len: u32, ) -> Option<Self>
Creates a layout with the requested cross-backend datagram payload capacity.
pub const fn entries(self) -> u16
pub const fn buffer_len(self) -> usize
Trait Implementations§
impl Copy for Receive
impl Eq for Receive
impl StructuralPartialEq for Receive
Auto Trait Implementations§
impl Freeze for Receive
impl RefUnwindSafe for Receive
impl Send for Receive
impl Sync for Receive
impl Unpin for Receive
impl UnsafeUnpin for Receive
impl UnwindSafe for Receive
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