Lines Matching defs:Self
68 pub(crate) unsafe fn aref_from_raw(ptr: *mut bindings::request) -> ARef<Self> {
85 pub(crate) unsafe fn start_unchecked(this: &ARef<Self>) {
100 fn try_set_end(this: ARef<Self>) -> Result<*mut bindings::request, ARef<Self>> {
124 pub fn end_ok(this: ARef<Self>) -> Result<(), ARef<Self>> {
125 let request_ptr = Self::try_set_end(this)?;
148 pub fn complete(this: ARef<Self>) {
164 /// [`Self`] plus size of [`RequestDataWrapper`].
165 pub(crate) unsafe fn wrapper_ptr(this: *mut Self) -> NonNull<RequestDataWrapper> {
183 unsafe { Self::wrapper_ptr(core::ptr::from_ref(self).cast_mut()).as_ref() }
211 /// - `this` must point to a live allocation of at least the size of `Self`.
212 pub(crate) unsafe fn refcount_ptr(this: *mut Self) -> *mut Refcount {
237 unsafe fn dec_ref(obj: core::ptr::NonNull<Self>) {
240 let wrapper_ptr = unsafe { Self::wrapper_ptr(obj.as_ptr()).as_ptr() };