pub struct SubmitArgs<'prev: 'now, 'now> { /* private fields */ }
Expand description
Submit arguments
Note that arguments that exceed their lifetime will fail to compile.
ⓘ
use io_uring::types::{ SubmitArgs, Timespec };
let sigmask: libc::sigset_t = unsafe { std::mem::zeroed() };
let mut args = SubmitArgs::new();
{
let ts = Timespec::new();
args = args.timespec(&ts);
args = args.sigmask(&sigmask);
}
drop(args);
Implementations§
Source§impl<'prev, 'now> SubmitArgs<'prev, 'now>
impl<'prev, 'now> SubmitArgs<'prev, 'now>
pub const fn new() -> SubmitArgs<'static, 'static>
pub fn sigmask<'new>(self, sigmask: &'new sigset_t) -> SubmitArgs<'now, 'new>
pub fn timespec<'new>(self, timespec: &'new Timespec) -> SubmitArgs<'now, 'new>
Trait Implementations§
Source§impl<'prev: 'now, 'now> Clone for SubmitArgs<'prev, 'now>
impl<'prev: 'now, 'now> Clone for SubmitArgs<'prev, 'now>
Source§fn clone(&self) -> SubmitArgs<'prev, 'now>
fn clone(&self) -> SubmitArgs<'prev, 'now>
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<'prev: 'now, 'now> Debug for SubmitArgs<'prev, 'now>
impl<'prev: 'now, 'now> Debug for SubmitArgs<'prev, 'now>
Source§impl<'prev: 'now, 'now> Default for SubmitArgs<'prev, 'now>
impl<'prev: 'now, 'now> Default for SubmitArgs<'prev, 'now>
Source§fn default() -> SubmitArgs<'prev, 'now>
fn default() -> SubmitArgs<'prev, 'now>
Returns the “default value” for a type. Read more
impl<'prev: 'now, 'now> Copy for SubmitArgs<'prev, 'now>
Auto Trait Implementations§
impl<'prev, 'now> Freeze for SubmitArgs<'prev, 'now>
impl<'prev, 'now> RefUnwindSafe for SubmitArgs<'prev, 'now>
impl<'prev, 'now> Send for SubmitArgs<'prev, 'now>
impl<'prev, 'now> Sync for SubmitArgs<'prev, 'now>
impl<'prev, 'now> Unpin for SubmitArgs<'prev, 'now>
impl<'prev, 'now> UnwindSafe for SubmitArgs<'prev, 'now>
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