Lines Matching refs:Ref
12 pub struct Ref<'a, T> { struct
17 impl<'a, T> Ref<'a, T> { argument
32 impl<'a, T> Deref for Ref<'a, T> { implementation
41 impl<'a, T: fmt::Debug> fmt::Debug for Ref<'a, T> { implementation
58 fn acquire<'call>(&self, data: Self::Data) -> Ref<'call, Self::Target>; in acquire()
62 fn encode(&self, target: Ref<'_, Self::Target>) -> u64; in encode()
70 unsafe fn decode<'call>(&self, raw: u64) -> Ref<'call, Self::Target>; in decode()
73 fn release(&self, target: Ref<'_, Self::Target>) -> Self::Data; in release()
86 fn acquire<'call>(&self, data: Self::Data) -> Ref<'call, Self::Target> { in acquire()
87 Ref::new(data) in acquire()
91 fn encode(&self, target: Ref<'_, Self::Target>) -> u64 { in encode()
96 unsafe fn decode<'call>(&self, raw: u64) -> Ref<'call, Self::Target> { in decode()
97 Ref::new(BorrowedFd::<'a>::borrow_raw(raw as RawFd)) in decode()
101 fn release(&self, target: Ref<'_, Self::Target>) -> Self::Data { in release()
134 fn acquire<'call>(&self, data: Self::Data) -> Ref<'call, Self::Target> { in acquire()
142 unsafe { Ref::new(BorrowedFd::<'context>::borrow_raw(raw_fd)) } in acquire()
146 fn encode(&self, target: Ref<'_, Self::Target>) -> u64 { in encode()
151 unsafe fn decode<'call>(&self, raw: u64) -> Ref<'call, Self::Target> { in decode()
152 Ref::new(BorrowedFd::<'context>::borrow_raw(raw as RawFd)) in decode()
156 fn release(&self, target: Ref<'_, Self::Target>) -> Self::Data { in release()