#[repr(C)]pub struct task_struct {Show 221 fields
pub thread_info: thread_info,
pub __state: u32,
pub saved_state: u32,
pub stack: *mut c_void,
pub usage: refcount_struct,
pub flags: u32,
pub ptrace: u32,
pub on_cpu: i32,
pub wake_entry: __call_single_node,
pub wakee_flips: u32,
pub __pad_76: [u8; 4],
pub wakee_flip_decay_ts: u64,
pub last_wakee: *mut task_struct,
pub recent_used_cpu: i32,
pub wake_cpu: i32,
pub on_rq: i32,
pub prio: i32,
pub static_prio: i32,
pub normal_prio: i32,
pub rt_priority: u32,
pub __pad_124: [u8; 4],
pub se: sched_entity,
pub rt: sched_rt_entity,
pub dl: sched_dl_entity,
pub dl_server: *mut sched_dl_entity,
pub scx: sched_ext_entity,
pub sched_class: *mut c_void,
pub sched_task_group: *mut c_void,
pub __pad_904: [u8; 56],
pub stats: sched_statistics,
pub btrace_seq: u32,
pub policy: u32,
pub max_allowed_capacity: u64,
pub nr_cpus_allowed: i32,
pub __pad_1236: [u8; 4],
pub cpus_ptr: *mut cpumask,
pub user_cpus_ptr: *mut cpumask,
pub cpus_mask: cpumask,
pub migration_pending: *mut c_void,
pub migration_disabled: u16,
pub migration_flags: u16,
pub rcu_read_lock_nesting: i32,
pub rcu_read_unlock_special: rcu_special,
pub __pad_2300: [u8; 4],
pub rcu_node_entry: list_head,
pub rcu_blocked_node: *mut c_void,
pub rcu_tasks_nvcsw: u64,
pub rcu_tasks_holdout: u8,
pub rcu_tasks_idx: u8,
pub rcu_tasks_idle_cpu: i32,
pub rcu_tasks_holdout_list: list_head,
pub rcu_tasks_exit_cpu: i32,
pub __pad_2364: [u8; 4],
pub rcu_tasks_exit_list: list_head,
pub trc_reader_nesting: i32,
pub trc_ipi_to_cpu: i32,
pub trc_reader_special: rcu_special,
pub __pad_2396: [u8; 4],
pub trc_holdout_list: list_head,
pub trc_blkd_node: list_head,
pub trc_blkd_cpu: i32,
pub __pad_2436: [u8; 4],
pub sched_info: sched_info,
pub tasks: list_head,
pub pushable_tasks: plist_node,
pub pushable_dl_tasks: rb_node,
pub mm: *mut c_void,
pub active_mm: *mut c_void,
pub faults_disabled_mapping: *mut c_void,
pub exit_state: i32,
pub exit_code: i32,
pub exit_signal: i32,
pub pdeath_signal: i32,
pub jobctl: u64,
pub personality: u32,
pub __pad_2620: [u8; 12],
pub atomic_flags: u64,
pub restart_block: restart_block,
pub pid: i32,
pub tgid: i32,
pub stack_canary: u64,
pub real_parent: *mut task_struct,
pub parent: *mut task_struct,
pub children: list_head,
pub sibling: list_head,
pub group_leader: *mut task_struct,
pub ptraced: list_head,
pub ptrace_entry: list_head,
pub thread_pid: *mut c_void,
pub pid_links: [hlist_node; 4],
pub thread_node: list_head,
pub vfork_done: *mut c_void,
pub set_child_tid: *mut i32,
pub clear_child_tid: *mut i32,
pub worker_private: *mut c_void,
pub utime: u64,
pub stime: u64,
pub gtime: u64,
pub prev_cputime: prev_cputime,
pub nvcsw: u64,
pub nivcsw: u64,
pub start_time: u64,
pub start_boottime: u64,
pub min_flt: u64,
pub maj_flt: u64,
pub posix_cputimers: posix_cputimers,
pub posix_cputimers_work: posix_cputimers_work,
pub ptracer_cred: *mut cred,
pub real_cred: *mut cred,
pub cred: *mut cred,
pub cached_requested_key: *mut c_void,
pub comm: [i8; 16],
pub nameidata: *mut c_void,
pub sysvsem: sysv_sem,
pub sysvshm: sysv_shm,
pub fs: *mut c_void,
pub files: *mut c_void,
pub io_uring: *mut c_void,
pub nsproxy: *mut c_void,
pub signal: *mut c_void,
pub sighand: *mut c_void,
pub blocked: __anon_task_struct_23,
pub real_blocked: __anon_task_struct_23,
pub saved_sigmask: __anon_task_struct_23,
pub pending: sigpending,
pub sas_ss_sp: u64,
pub sas_ss_size: u64,
pub sas_ss_flags: u32,
pub __pad_3348: [u8; 4],
pub task_works: *mut callback_head,
pub audit_context: *mut c_void,
pub loginuid: __anon_task_struct_26,
pub sessionid: u32,
pub seccomp: seccomp,
pub syscall_dispatch: syscall_user_dispatch,
pub parent_exec_id: u64,
pub self_exec_id: u64,
pub alloc_lock: spinlock,
pub pi_lock: raw_spinlock,
pub wake_q: wake_q_node,
pub pi_waiters: rb_root_cached,
pub pi_top_task: *mut task_struct,
pub pi_blocked_on: *mut c_void,
pub journal_info: *mut c_void,
pub bio_list: *mut c_void,
pub plug: *mut c_void,
pub reclaim_state: *mut c_void,
pub io_context: *mut c_void,
pub capture_control: *mut c_void,
pub ptrace_message: u64,
pub last_siginfo: *mut c_void,
pub ioac: task_io_accounting,
pub acct_rss_mem1: u64,
pub acct_vm_mem1: u64,
pub acct_timexpd: u64,
pub mems_allowed: __anon_task_struct_34,
pub mems_allowed_seq: seqcount_spinlock,
pub cpuset_mem_spread_rotor: i32,
pub cgroups: *mut c_void,
pub cg_list: list_head,
pub robust_list: *mut c_void,
pub compat_robust_list: *mut c_void,
pub pi_state_list: list_head,
pub pi_state_cache: *mut c_void,
pub futex_exit_mutex: mutex,
pub futex_state: u32,
pub perf_recursion: [u8; 4],
pub perf_event_ctxp: *mut c_void,
pub perf_event_mutex: mutex,
pub perf_event_list: list_head,
pub perf_ctx_data: *mut c_void,
pub mempolicy: *mut c_void,
pub il_prev: i16,
pub il_weight: u8,
pub pref_node_fork: i16,
pub rseq: *mut c_void,
pub rseq_len: u32,
pub rseq_sig: u32,
pub rseq_event_mask: u64,
pub mm_cid: i32,
pub last_mm_cid: i32,
pub migrate_from_cpu: i32,
pub mm_cid_active: i32,
pub cid_work: callback_head,
pub tlb_ubc: tlbflush_unmap_batch,
pub splice_pipe: *mut c_void,
pub task_frag: page_frag,
pub delays: *mut c_void,
pub nr_dirtied: i32,
pub nr_dirtied_pause: i32,
pub dirty_paused_when: u64,
pub timer_slack_ns: u64,
pub default_timer_slack_ns: u64,
pub trace_recursion: u64,
pub throttle_disk: *mut c_void,
pub utask: *mut c_void,
pub kmap_ctrl: kmap_ctrl,
pub rcu: callback_head,
pub rcu_users: refcount_struct,
pub pagefault_disabled: i32,
pub oom_reaper_list: *mut task_struct,
pub oom_reaper_timer: timer_list,
pub stack_vm_area: *mut c_void,
pub stack_refcount: refcount_struct,
pub __pad_5100: [u8; 4],
pub security: *mut c_void,
pub bpf_storage: *mut c_void,
pub bpf_ctx: *mut c_void,
pub bpf_net_context: *mut c_void,
pub mce_vaddr: *mut c_void,
pub mce_kflags: u64,
pub mce_addr: u64,
pub __pad_5160: [u8; 8],
pub mce_kill_me: callback_head,
pub mce_count: i32,
pub __pad_5188: [u8; 4],
pub kretprobe_instances: llist_head,
pub rethooks: llist_head,
pub l1d_flush_kill: callback_head,
pub thread: thread_struct,
pub __pad_5376: [u8; 48],
}Fields§
§thread_info: thread_info§__state: u32§saved_state: u32§stack: *mut c_void§usage: refcount_struct§flags: u32§ptrace: u32§on_cpu: i32§wake_entry: __call_single_node§wakee_flips: u32§__pad_76: [u8; 4]§wakee_flip_decay_ts: u64§last_wakee: *mut task_struct§recent_used_cpu: i32§wake_cpu: i32§on_rq: i32§prio: i32§static_prio: i32§normal_prio: i32§rt_priority: u32§__pad_124: [u8; 4]§se: sched_entity§rt: sched_rt_entity§dl: sched_dl_entity§dl_server: *mut sched_dl_entity§scx: sched_ext_entity§sched_class: *mut c_void§sched_task_group: *mut c_void§__pad_904: [u8; 56]§stats: sched_statistics§btrace_seq: u32§policy: u32§max_allowed_capacity: u64§nr_cpus_allowed: i32§__pad_1236: [u8; 4]§cpus_ptr: *mut cpumask§user_cpus_ptr: *mut cpumask§cpus_mask: cpumask§migration_pending: *mut c_void§migration_disabled: u16§migration_flags: u16§rcu_read_lock_nesting: i32§rcu_read_unlock_special: rcu_special§__pad_2300: [u8; 4]§rcu_node_entry: list_head§rcu_blocked_node: *mut c_void§rcu_tasks_nvcsw: u64§rcu_tasks_holdout: u8§rcu_tasks_idx: u8§rcu_tasks_idle_cpu: i32§rcu_tasks_holdout_list: list_head§rcu_tasks_exit_cpu: i32§__pad_2364: [u8; 4]§rcu_tasks_exit_list: list_head§trc_reader_nesting: i32§trc_ipi_to_cpu: i32§trc_reader_special: rcu_special§__pad_2396: [u8; 4]§trc_holdout_list: list_head§trc_blkd_node: list_head§trc_blkd_cpu: i32§__pad_2436: [u8; 4]§sched_info: sched_info§tasks: list_head§pushable_tasks: plist_node§pushable_dl_tasks: rb_node§mm: *mut c_void§active_mm: *mut c_void§faults_disabled_mapping: *mut c_void§exit_state: i32§exit_code: i32§exit_signal: i32§pdeath_signal: i32§jobctl: u64§personality: u32§__pad_2620: [u8; 12]§atomic_flags: u64§restart_block: restart_block§pid: i32§tgid: i32§stack_canary: u64§real_parent: *mut task_struct§parent: *mut task_struct§children: list_head§sibling: list_head§group_leader: *mut task_struct§ptraced: list_head§ptrace_entry: list_head§thread_pid: *mut c_void§pid_links: [hlist_node; 4]§thread_node: list_head§vfork_done: *mut c_void§set_child_tid: *mut i32§clear_child_tid: *mut i32§worker_private: *mut c_void§utime: u64§stime: u64§gtime: u64§prev_cputime: prev_cputime§nvcsw: u64§nivcsw: u64§start_time: u64§start_boottime: u64§min_flt: u64§maj_flt: u64§posix_cputimers: posix_cputimers§posix_cputimers_work: posix_cputimers_work§ptracer_cred: *mut cred§real_cred: *mut cred§cred: *mut cred§cached_requested_key: *mut c_void§comm: [i8; 16]§nameidata: *mut c_void§sysvsem: sysv_sem§sysvshm: sysv_shm§fs: *mut c_void§files: *mut c_void§io_uring: *mut c_void§nsproxy: *mut c_void§signal: *mut c_void§sighand: *mut c_void§blocked: __anon_task_struct_23§real_blocked: __anon_task_struct_23§saved_sigmask: __anon_task_struct_23§pending: sigpending§sas_ss_sp: u64§sas_ss_size: u64§sas_ss_flags: u32§__pad_3348: [u8; 4]§task_works: *mut callback_head§audit_context: *mut c_void§loginuid: __anon_task_struct_26§sessionid: u32§seccomp: seccomp§syscall_dispatch: syscall_user_dispatch§parent_exec_id: u64§self_exec_id: u64§alloc_lock: spinlock§pi_lock: raw_spinlock§wake_q: wake_q_node§pi_waiters: rb_root_cached§pi_top_task: *mut task_struct§pi_blocked_on: *mut c_void§journal_info: *mut c_void§bio_list: *mut c_void§plug: *mut c_void§reclaim_state: *mut c_void§io_context: *mut c_void§capture_control: *mut c_void§ptrace_message: u64§last_siginfo: *mut c_void§ioac: task_io_accounting§acct_rss_mem1: u64§acct_vm_mem1: u64§acct_timexpd: u64§mems_allowed: __anon_task_struct_34§mems_allowed_seq: seqcount_spinlock§cpuset_mem_spread_rotor: i32§cgroups: *mut c_void§cg_list: list_head§robust_list: *mut c_void§compat_robust_list: *mut c_void§pi_state_list: list_head§pi_state_cache: *mut c_void§futex_exit_mutex: mutex§futex_state: u32§perf_recursion: [u8; 4]§perf_event_ctxp: *mut c_void§perf_event_mutex: mutex§perf_event_list: list_head§perf_ctx_data: *mut c_void§mempolicy: *mut c_void§il_prev: i16§il_weight: u8§pref_node_fork: i16§rseq: *mut c_void§rseq_len: u32§rseq_sig: u32§rseq_event_mask: u64§mm_cid: i32§last_mm_cid: i32§migrate_from_cpu: i32§mm_cid_active: i32§cid_work: callback_head§tlb_ubc: tlbflush_unmap_batch§splice_pipe: *mut c_void§task_frag: page_frag§delays: *mut c_void§nr_dirtied: i32§nr_dirtied_pause: i32§dirty_paused_when: u64§timer_slack_ns: u64§default_timer_slack_ns: u64§trace_recursion: u64§throttle_disk: *mut c_void§utask: *mut c_void§kmap_ctrl: kmap_ctrl§rcu: callback_head§rcu_users: refcount_struct§pagefault_disabled: i32§oom_reaper_list: *mut task_struct§oom_reaper_timer: timer_list§stack_vm_area: *mut c_void§stack_refcount: refcount_struct§__pad_5100: [u8; 4]§security: *mut c_void§bpf_storage: *mut c_void§bpf_ctx: *mut c_void§bpf_net_context: *mut c_void§mce_vaddr: *mut c_void§mce_kflags: u64§mce_addr: u64§__pad_5160: [u8; 8]§mce_kill_me: callback_head§mce_count: i32§__pad_5188: [u8; 4]§kretprobe_instances: llist_head§rethooks: llist_head§l1d_flush_kill: callback_head§thread: thread_struct§__pad_5376: [u8; 48]Trait Implementations§
Source§impl Clone for task_struct
impl Clone for task_struct
Source§fn clone(&self) -> task_struct
fn clone(&self) -> task_struct
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for task_struct
impl Debug for task_struct
Source§impl Default for task_struct
impl Default for task_struct
impl Copy for task_struct
Auto Trait Implementations§
impl Freeze for task_struct
impl RefUnwindSafe for task_struct
impl !Send for task_struct
impl !Sync for task_struct
impl Unpin for task_struct
impl UnwindSafe for task_struct
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.