Struct rustix::io::epoll::Owning[][src]

pub struct Owning<'context, T: IntoFd + FromFd> { /* fields omitted */ }
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

Performs the conversion.

Performs the conversion.

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.