pub struct NioLinuxSyscall<I: UnixSyscall> { /* private fields */ }

Trait Implementations§

source§

impl<I: Debug + UnixSyscall> Debug for NioLinuxSyscall<I>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<I: Default + UnixSyscall> Default for NioLinuxSyscall<I>

source§

fn default() -> NioLinuxSyscall<I>

Returns the “default value” for a type. Read more
source§

impl<I: LinuxSyscall> LinuxSyscall for NioLinuxSyscall<I>

source§

extern "C" fn epoll_ctl( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: c_int, _: c_int, _: *mut epoll_event) -> c_int>, epfd: c_int, op: c_int, fd: c_int, event: *mut epoll_event ) -> c_int

poll
source§

extern "C" fn accept4( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *mut sockaddr, _: *mut socklen_t, _: c_int) -> c_int>, fd: c_int, addr: *mut sockaddr, len: *mut socklen_t, flg: c_int ) -> c_int

socket
source§

impl<I: UnixSyscall> UnixSyscall for NioLinuxSyscall<I>

source§

extern "C" fn sleep( &self, _: Option<&extern "C" fn(_: c_uint) -> c_uint>, secs: c_uint ) -> c_uint

sleep
source§

extern "C" fn usleep( &self, _: Option<&extern "C" fn(_: c_uint) -> c_int>, microseconds: c_uint ) -> c_int

source§

extern "C" fn nanosleep( &self, _: Option<&extern "C" fn(_: *const timespec, _: *mut timespec) -> c_int>, rqtp: *const timespec, rmtp: *mut timespec ) -> c_int

source§

extern "C" fn poll( &self, fn_ptr: Option<&extern "C" fn(_: *mut pollfd, _: nfds_t, _: c_int) -> c_int>, fds: *mut pollfd, nfds: nfds_t, timeout: c_int ) -> c_int

poll
source§

extern "C" fn select( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *mut fd_set, _: *mut fd_set, _: *mut fd_set, _: *mut timeval) -> c_int>, nfds: c_int, readfds: *mut fd_set, writefds: *mut fd_set, errorfds: *mut fd_set, timeout: *mut timeval ) -> c_int

source§

extern "C" fn socket( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: c_int, _: c_int) -> c_int>, domain: c_int, ty: c_int, protocol: c_int ) -> c_int

socket
source§

extern "C" fn listen( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: c_int) -> c_int>, socket: c_int, backlog: c_int ) -> c_int

source§

extern "C" fn accept( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *mut sockaddr, _: *mut socklen_t) -> c_int>, socket: c_int, address: *mut sockaddr, address_len: *mut socklen_t ) -> c_int

source§

extern "C" fn connect( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *const sockaddr, _: socklen_t) -> c_int>, socket: c_int, address: *const sockaddr, len: socklen_t ) -> c_int

source§

extern "C" fn shutdown( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: c_int) -> c_int>, socket: c_int, how: c_int ) -> c_int

source§

extern "C" fn close( &self, fn_ptr: Option<&extern "C" fn(_: c_int) -> c_int>, fd: c_int ) -> c_int

source§

extern "C" fn recv( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *mut c_void, _: size_t, _: c_int) -> ssize_t>, socket: c_int, buf: *mut c_void, len: size_t, flags: c_int ) -> ssize_t

read
source§

extern "C" fn recvfrom( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *mut c_void, _: size_t, _: c_int, _: *mut sockaddr, _: *mut socklen_t) -> ssize_t>, socket: c_int, buf: *mut c_void, len: size_t, flags: c_int, addr: *mut sockaddr, addrlen: *mut socklen_t ) -> ssize_t

source§

extern "C" fn read( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *mut c_void, _: size_t) -> ssize_t>, fd: c_int, buf: *mut c_void, count: size_t ) -> ssize_t

source§

extern "C" fn pread( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *mut c_void, _: size_t, _: off_t) -> ssize_t>, fd: c_int, buf: *mut c_void, count: size_t, offset: off_t ) -> ssize_t

source§

extern "C" fn readv( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *const iovec, _: c_int) -> ssize_t>, fd: c_int, iov: *const iovec, iovcnt: c_int ) -> ssize_t

source§

extern "C" fn preadv( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *const iovec, _: c_int, _: off_t) -> ssize_t>, fd: c_int, iov: *const iovec, iovcnt: c_int, offset: off_t ) -> ssize_t

source§

extern "C" fn recvmsg( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *mut msghdr, _: c_int) -> ssize_t>, fd: c_int, msg: *mut msghdr, flags: c_int ) -> ssize_t

source§

extern "C" fn send( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *const c_void, _: size_t, _: c_int) -> ssize_t>, socket: c_int, buf: *const c_void, len: size_t, flags: c_int ) -> ssize_t

write
source§

extern "C" fn sendto( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *const c_void, _: size_t, _: c_int, _: *const sockaddr, _: socklen_t) -> ssize_t>, socket: c_int, buf: *const c_void, len: size_t, flags: c_int, addr: *const sockaddr, addrlen: socklen_t ) -> ssize_t

source§

extern "C" fn write( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *const c_void, _: size_t) -> ssize_t>, fd: c_int, buf: *const c_void, count: size_t ) -> ssize_t

source§

extern "C" fn pwrite( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *const c_void, _: size_t, _: off_t) -> ssize_t>, fd: c_int, buf: *const c_void, count: size_t, offset: off_t ) -> ssize_t

source§

extern "C" fn writev( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *const iovec, _: c_int) -> ssize_t>, fd: c_int, iov: *const iovec, iovcnt: c_int ) -> ssize_t

source§

extern "C" fn pwritev( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *const iovec, _: c_int, _: off_t) -> ssize_t>, fd: c_int, iov: *const iovec, iovcnt: c_int, offset: off_t ) -> ssize_t

source§

extern "C" fn sendmsg( &self, fn_ptr: Option<&extern "C" fn(_: c_int, _: *const msghdr, _: c_int) -> ssize_t>, fd: c_int, msg: *const msghdr, flags: c_int ) -> ssize_t

Auto Trait Implementations§

§

impl<I> RefUnwindSafe for NioLinuxSyscall<I>
where I: RefUnwindSafe,

§

impl<I> Send for NioLinuxSyscall<I>
where I: Send,

§

impl<I> Sync for NioLinuxSyscall<I>
where I: Sync,

§

impl<I> Unpin for NioLinuxSyscall<I>
where I: Unpin,

§

impl<I> UnwindSafe for NioLinuxSyscall<I>
where I: UnwindSafe,

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.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

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

§

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>,

§

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V