Struct rustix::io::epoll::Owning

source ·
pub struct Owning<'context, T: IntoFd + FromFd> { /* private fields */ }
Expand description

A type implementing Context where the Data type is T, a type implementing IntoFd and FromFd.

This may be used with OwnedFd, or higher-level types like std::fs::File or std::net::TcpStream.

Implementations§

Creates a new empty Owning.

Trait Implementations§

The type of an element owned by this context.
The type of a value used to refer to an element owned by this context.
Assume ownership of data, and returning a Target.
Encode target as a u64. The only requirement on this value is that it be decodable by decode. Read more
Decode raw, which is a value encoded by encode, into a Target. Read more
Release ownership of the value referred to by target and return it.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.