Skip to main content

Sqe

Struct Sqe 

Source
pub struct Sqe { /* private fields */ }

Implementations§

Source§

impl Sqe

Source

pub const SUPPORTS_RECV_DISCARD: bool = true

Source

pub fn entry(&self) -> &Entry

Source

pub fn create_meta(&self) -> Option<Create>

Source

pub fn from_entry(entry: Entry) -> Self

Source

pub fn send(fd: &Fd<'_>, buf: &[u8], op: Token) -> Self

Source

pub fn send_at(slot: FdSlot, buf: &[u8], op: Token) -> Self

Source

pub unsafe fn write_fd(fd: RawFd, buf: &[u8], offset: u64, op: Token) -> Self

§Safety

fd must stay open and buf stable and unchanged until completion.

Source

pub fn openat( dir: RawFd, path: *const c_char, flags: i32, mode: u32, op: Token, ) -> Self

Source

pub unsafe fn openat_fixed( dir: RawFd, path: *const c_char, flags: i32, mode: u32, slot: FdSlot, op: Token, ) -> Result<Self>

§Safety

dir and a NUL-terminated path must stay valid, and slot reserved, until completion.

Source

pub unsafe fn read(fd: RawFd, buf: &mut [u8], offset: u64, op: Token) -> Self

§Safety

fd must stay open and buf stable and unaliased until completion.

Source

pub unsafe fn read_uninit( fd: RawFd, buf: &mut [MaybeUninit<u8>], offset: u64, op: Token, ) -> Self

§Safety

fd must stay open and buf stable and unaliased until completion.

Source

pub fn read_fixed_file_uninit( slot: FdSlot, buf: &mut [MaybeUninit<u8>], offset: u64, op: Token, ) -> Self

Source

pub fn stat_path(path: *const c_char, stat: *mut statx, op: Token) -> Self

Source

pub fn stat_fd(fd: RawFd, stat: *mut statx, op: Token) -> Self

Source

pub unsafe fn splice_raw( fd_in: RawFd, off_in: i64, fd_out: RawFd, off_out: i64, len: u32, flags: u32, op: Token, ) -> Self

§Safety

Both descriptors must stay open until completion.

Source

pub fn splice_to_pipe( fd_in: RawFd, off_in: i64, pipe_write_fd: RawFd, len: u32, op: Token, ) -> Self

Source

pub unsafe fn recv_multi(fd: &Fd<'_>, buf_group: u16, op: Token) -> Self

§Safety

fd must belong to the receiving driver and stay live until completion.

Source

pub unsafe fn recv_discard(fd: &Fd<'_>, remaining: u64, op: Token) -> Self

§Safety

fd must belong to the receiving driver and stay live until completion.

Source

pub fn accept_oneshot( listener: &Fd<'_>, addr_ptr: *mut sockaddr, addrlen_ptr: *mut socklen_t, op: Token, ) -> Self

Source

pub fn recv_msg_multi( fd: &Fd<'_>, msghdr: &msghdr, buf_group: u16, op: Token, ) -> Self

Source

pub fn send_msg(fd: &Fd<'_>, msg: &msghdr, op: Token) -> Self

Source

pub fn close_at(slot: FdSlot) -> Self

Source

pub fn quickack(fd: &Fd<'_>) -> Self

Source

pub fn shutdown(fd: &Fd<'_>, how: i32) -> Self

Source

pub fn shutdown_linked_at(slot: FdSlot, how: i32) -> Self

Source

pub fn poll_shutdown(fd: RawFd) -> Self

Source

pub fn cancel(target: Token, op_kind: u8) -> Self

Source

pub fn interval(timer: &'static Timespec, op: Token) -> Self

Arms a kernel-owned recurring timer.

The timer specification is referenced by the multishot operation and must therefore remain live until the driver is torn down or the timer is cancelled.

Source

pub fn cancel_create(slot: FdSlot) -> Self

Source

pub fn socket( domain: i32, socket_type: i32, protocol: i32, fd: &Fd<'_>, op: Token, ) -> Result<Self>

Source

pub fn socket_at( domain: i32, socket_type: i32, protocol: i32, slot: FdSlot, op: Token, ) -> Result<Self>

Source

pub fn bind_at( slot: FdSlot, addr_ptr: *const sockaddr, addr_len: u32, op: Token, ) -> Self

Source

pub fn listen_at(slot: FdSlot, backlog: i32, op: Token) -> Self

Source

pub fn connect( fd: &Fd<'_>, addr_ptr: *const sockaddr, addr_len: u32, op: Token, ) -> Self

Auto Trait Implementations§

§

impl !Send for Sqe

§

impl !Sync for Sqe

§

impl Freeze for Sqe

§

impl RefUnwindSafe for Sqe

§

impl Unpin for Sqe

§

impl UnsafeUnpin for Sqe

§

impl UnwindSafe for Sqe

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.