pub struct Driver { /* private fields */ }Implementations§
Source§impl Driver
impl Driver
pub fn drive(&mut self) -> Result<bool>
pub fn drive_with<H: CqeRouter>(&mut self, handler: &mut H) -> Result<bool>
pub fn cancel_write(&mut self, token: Token)
pub fn cancel_accept(&mut self, token: Token)
pub fn dispatch_cqes<H: CqeRouter>(&mut self, handler: &mut H)
Trait Implementations§
Source§impl DriverLifecycle for Driver
impl DriverLifecycle for Driver
Source§impl DriverOps for Driver
impl DriverOps for Driver
type Token = Token<u8>
type ProvidedRing = ProvidedRing
type IoRequest<O: Unpin + 'static> = Request<O>
fn provided_ring(&mut self) -> &mut Self::ProvidedRing
fn buf_group(&self) -> u16
fn arm_recv_multi( &mut self, token: Self::Token, fd: FixedFd, buf_group: u16, ) -> bool
Source§unsafe fn arm_recv_msg_multi(
&mut self,
token: Self::Token,
fd: FixedFd,
buf_group: u16,
msghdr: *const msghdr,
) -> bool
unsafe fn arm_recv_msg_multi( &mut self, token: Self::Token, fd: FixedFd, buf_group: u16, msghdr: *const msghdr, ) -> bool
Safety Read more
fn arm_accept_multi(&mut self, token: Self::Token, fd: Fd) -> bool
fn submit_send_tagged( &mut self, token: Self::Token, fd: FixedFd, ptr: *const u8, len: u32, ) -> bool
Source§unsafe fn submit_send_msg_tagged(
&mut self,
token: Self::Token,
fd: FixedFd,
msg: *const msghdr,
) -> bool
unsafe fn submit_send_msg_tagged( &mut self, token: Self::Token, fd: FixedFd, msg: *const msghdr, ) -> bool
Safety Read more
fn cancel_recv(&mut self, token: Self::Token)
fn try_submit_connect_raw( &mut self, fd: Fd, addr: SockAddr, ) -> Result<Self::IoRequest<SockAddr>, (Error, SockAddr)>
fn try_submit_sendmsg_raw<P: SendMsgPacket + Unpin + 'static>( &mut self, fd: Fd, packet: P, ) -> Result<Self::IoRequest<P>, (Error, P)>
fn try_submit_send_raw<B: AsRef<[u8]> + Unpin + 'static>( &mut self, fd: Fd, buf: B, ) -> Result<Self::IoRequest<B>, (Error, B)>
Source§impl FixedBuffers for Driver
impl FixedBuffers for Driver
type Guard = FixedBufGuard
fn fixed_guard(&mut self) -> Option<Self::Guard>
fn register_fixed(&mut self, fd: Fd) -> Result<Option<u32>>
fn unregister_fixed(&mut self, idx: u32)
Source§impl ProvidedBufRing for Driver
impl ProvidedBufRing for Driver
Source§impl SubmitOps for &mut Driver
impl SubmitOps for &mut Driver
fn submit_accept( self, fd: Fd, ) -> impl Future<Output = Result<(RawFd, SockAddr)>> + 'static
fn submit_read<B>( self, fd: Fd, buf: B, ) -> impl Future<Output = (Result<u32>, B)> + 'static
fn submit_send_raw<B>( self, fd: Fd, buf: B, len: usize, ) -> impl Future<Output = (Result<u32>, B)> + 'static
fn submit_sendmsg_raw<P>(
self,
fd: Fd,
packet: P,
) -> impl Future<Output = (Result<u32>, P)> + 'staticwhere
P: SendMsgPacket + Unpin + 'static,
fn submit_recvmsg_raw<P>(
self,
fd: Fd,
packet: P,
) -> impl Future<Output = (Result<u32>, P)> + 'staticwhere
P: RecvMsgPacket + Unpin + 'static,
Auto Trait Implementations§
impl !RefUnwindSafe for Driver
impl !Send for Driver
impl !Sync for Driver
impl !UnwindSafe for Driver
impl Freeze for Driver
impl Unpin for Driver
impl UnsafeUnpin for Driver
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