Home
last modified time | relevance | path

Searched refs:FnOnce (Results 1 – 8 of 8) sorted by relevance

/linux-6.15/rust/kernel/
H A Dtypes.rs203 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>);
205 impl<T, F: FnOnce(T)> ScopeGuard<T, F> {
222 pub fn new(cleanup: impl FnOnce()) -> ScopeGuard<(), impl FnOnce(())> { in new() argument
227 impl<T, F: FnOnce(T)> Deref for ScopeGuard<T, F> {
236 impl<T, F: FnOnce(T)> DerefMut for ScopeGuard<T, F> {
243 impl<T, F: FnOnce(T)> Drop for ScopeGuard<T, F> {
351 pub fn ffi_init(init_func: impl FnOnce(*mut T)) -> impl PinInit<Self> { in ffi_init()
371 init_func: impl FnOnce(*mut T) -> Result<(), E>, in try_ffi_init()
H A Dworkqueue.rs212 pub fn try_spawn<T: 'static + Send + FnOnce()>( in try_spawn()
244 impl<T: FnOnce()> WorkItem for ClosureWork<T> {
298 F: FnOnce(*mut bindings::work_struct) -> bool; in __enqueue()
567 F: FnOnce(*mut bindings::work_struct) -> bool, in __enqueue()
616 F: FnOnce(*mut bindings::work_struct) -> bool, in __enqueue()
H A Dpage.rs103 fn with_page_mapped<T>(&self, f: impl FnOnce(*mut u8) -> T) -> T { in with_page_mapped()
148 f: impl FnOnce(*mut u8) -> Result<T>, in with_pointer_into_page()
H A Derror.rs457 F: FnOnce() -> Result<T>, in from_result()
/linux-6.15/rust/pin-init/src/
H A D__internal.rs29 F: FnOnce(*mut T) -> Result<(), E>,
41 F: FnOnce(*mut T) -> Result<(), E>,
73 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
103 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
H A Dlib.rs1034 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain()
1050 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
1142 F: FnOnce(&mut T) -> Result<(), E>, in chain()
1157 F: FnOnce(&mut T) -> Result<(), E>,
1173 F: FnOnce(&mut T) -> Result<(), E>,
1195 f: impl FnOnce(*mut T) -> Result<(), E>, in pin_init_from_closure()
1214 f: impl FnOnce(*mut T) -> Result<(), E>, in init_from_closure()
/linux-6.15/rust/kernel/time/
H A Dhrtimer.rs237 F: FnOnce() -> T; in start_scoped()
249 F: FnOnce() -> U, in start_scoped()
/linux-6.15/rust/kernel/sync/
H A Dlock.rs231 pub(crate) fn do_unlocked<U>(&mut self, cb: impl FnOnce() -> U) -> U { in do_unlocked()