Struct io_uring::types::DestinationSlot
source · pub struct DestinationSlot { /* private fields */ }
Expand description
A destination slot for sending fixed resources
(e.g. opcode::MsgRingSendFd
).
Implementations§
source§impl DestinationSlot
impl DestinationSlot
sourcepub const fn auto_target() -> Self
pub const fn auto_target() -> Self
Use an automatically allocated target slot.
sourcepub fn try_from_slot_target(target: u32) -> Result<Self, u32>
pub fn try_from_slot_target(target: u32) -> Result<Self, u32>
Try to use a given target slot.
Valid slots are in the range from 0
to u32::MAX - 2
inclusive.
Trait Implementations§
source§impl Clone for DestinationSlot
impl Clone for DestinationSlot
source§fn clone(&self) -> DestinationSlot
fn clone(&self) -> DestinationSlot
Returns a copy 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 DestinationSlot
impl Debug for DestinationSlot
impl Copy for DestinationSlot
Auto Trait Implementations§
impl Freeze for DestinationSlot
impl RefUnwindSafe for DestinationSlot
impl Send for DestinationSlot
impl Sync for DestinationSlot
impl Unpin for DestinationSlot
impl UnwindSafe for DestinationSlot
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