pub struct Accept { /* private fields */ }
Expand description
Accept a new connection on a socket, equivalent to accept4(2)
.
Implementations§
Source§impl Accept
impl Accept
Sourcepub const CODE: u8 = 13u8
pub const CODE: u8 = 13u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.
pub fn new( fd: impl UseFixed, addr: *mut sockaddr, addrlen: *mut socklen_t, ) -> Self
pub const fn file_index(self, file_index: Option<DestinationSlot>) -> Self
pub const fn flags(self, flags: i32) -> Self
pub fn build(self) -> Entry
Auto Trait Implementations§
impl Freeze for Accept
impl RefUnwindSafe for Accept
impl !Send for Accept
impl !Sync for Accept
impl Unpin for Accept
impl UnwindSafe for Accept
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