pub trait Source: Source {
// Provided methods
fn accept<E: From<Errno>>(
file: BorrowedFd<'_>,
addr: Option<&mut Storage>,
) -> Result<OwnedFd, E> { ... }
unsafe fn send<X: Extent, E: From<Errno>>(
file: BorrowedFd<'_>,
ptr: *const u8,
len: X::Length,
) -> Result<X::Length, E> { ... }
unsafe fn sendmsg<E: From<Errno>>(
file: BorrowedFd<'_>,
header: &Header,
flags: c_int,
) -> Result<U32<0, { _ }>, E> { ... }
}Expand description
Native access to operations retaining caller-owned socket storage.
Provided Methods§
fn accept<E: From<Errno>>( file: BorrowedFd<'_>, addr: Option<&mut Storage>, ) -> Result<OwnedFd, E>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".