pub struct Borrowing<'a> { /* private fields */ }
Expand description
A type implementing Context
where the Data
type is BorrowedFd<'a>
.
Trait Implementations
sourceimpl<'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.
sourcefn 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
.
sourcefn 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more