pub struct Borrowing<'a> { /* private fields */ }
Expand description
A type implementing Context
where the Data
type is BorrowedFd<'a>
.
Trait Implementations§
source§impl<'a> Context for Borrowing<'a>
impl<'a> Context for Borrowing<'a>
§type Data = BorrowedFd<'a>
type Data = BorrowedFd<'a>
The type of an element owned by this context.
§type Target = BorrowedFd<'a>
type Target = BorrowedFd<'a>
The type of a value used to refer to an element owned by this context.
source§fn acquire<'call>(&self, data: Self::Data) -> Ref<'call, Self::Target>
fn acquire<'call>(&self, data: Self::Data) -> Ref<'call, Self::Target>
Assume ownership of
data
, and returning a Target
.source§fn encode(&self, target: Ref<'_, Self::Target>) -> u64
fn encode(&self, target: Ref<'_, Self::Target>) -> u64
Encode
target
as a u64
. The only requirement on this value is that
it be decodable by decode
. Read more