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 more