Home
last modified time | relevance | path

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

/linux/rust/kernel/
H A Dtypes.rs208 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>);
210 impl<T, F: FnOnce(T)> ScopeGuard<T, F> {
227 pub fn new(cleanup: impl FnOnce()) -> ScopeGuard<(), impl FnOnce(())> { in new() argument
232 impl<T, F: FnOnce(T)> Deref for ScopeGuard<T, F> {
241 impl<T, F: FnOnce(T)> DerefMut for ScopeGuard<T, F> {
248 impl<T, F: FnOnce(T)> Drop for ScopeGuard<T, F> {
291 pub fn ffi_init(init_func: impl FnOnce(*mut T)) -> impl PinInit<Self> { in ffi_init()
H A Dworkqueue.rs209 pub fn try_spawn<T: 'static + Send + FnOnce()>( in try_spawn()
241 impl<T: FnOnce()> WorkItem for ClosureWork<T> {
295 F: FnOnce(*mut bindings::work_struct) -> bool; in __enqueue()
549 F: FnOnce(*mut bindings::work_struct) -> bool, in __enqueue()
596 F: FnOnce(*mut bindings::work_struct) -> bool, in __enqueue()
H A Dinit.rs890 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain()
906 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
989 F: FnOnce(&mut T) -> Result<(), E>, in chain()
1004 F: FnOnce(&mut T) -> Result<(), E>,
1020 F: FnOnce(&mut T) -> Result<(), E>,
1042 f: impl FnOnce(*mut T) -> Result<(), E>, in pin_init_from_closure()
1061 f: impl FnOnce(*mut T) -> Result<(), E>, in init_from_closure()
H A Dpage.rs95 fn with_page_mapped<T>(&self, f: impl FnOnce(*mut u8) -> T) -> T { in with_page_mapped()
140 f: impl FnOnce(*mut u8) -> Result<T>, in with_pointer_into_page()
H A Derror.rs323 F: FnOnce() -> Result<T>, in from_result()
/linux/rust/kernel/init/
H A D__internal.rs27 F: FnOnce(*mut T) -> Result<(), E>,
39 F: FnOnce(*mut T) -> Result<(), E>,
70 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
99 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
/linux/rust/kernel/sync/
H A Dlock.rs149 pub(crate) fn do_unlocked<U>(&mut self, cb: impl FnOnce() -> U) -> U { in do_unlocked()