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
.Auto Trait Implementations§
impl<'a> RefUnwindSafe for Borrowing<'a>
impl<'a> Send for Borrowing<'a>
impl<'a> Sync for Borrowing<'a>
impl<'a> Unpin for Borrowing<'a>
impl<'a> UnwindSafe for Borrowing<'a>
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