Struct task_struct

Source
#[repr(C)]
pub struct task_struct {
Show 240 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 core_node: rb_node, pub core_cookie: u64, pub core_occupation: u32, pub __pad_940: [u8; 4], pub sched_task_group: *mut c_void, pub uclamp_req: [uclamp_se; 2], pub uclamp: [uclamp_se; 2], pub __pad_968: [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_1044: [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_2108: [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_2172: [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_2204: [u8; 4], pub trc_holdout_list: list_head, pub trc_blkd_node: list_head, pub trc_blkd_cpu: i32, pub __pad_2244: [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_2412: [u8; 12], pub atomic_flags: u64, pub restart_block: restart_block, pub pid: i32, pub tgid: i32, 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 vtime: vtime, pub tick_dep_mask: __anon_2, pub __pad_2804: [u8; 4], 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 last_switch_count: u64, pub last_switch_time: u64, 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_6, pub real_blocked: __anon_6, pub saved_sigmask: __anon_6, pub pending: sigpending, pub sas_ss_sp: u64, pub sas_ss_size: u64, pub sas_ss_flags: u32, pub __pad_3204: [u8; 4], pub task_works: *mut callback_head, 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 psi_flags: u32, pub __pad_3452: [u8; 4], pub acct_rss_mem1: u64, pub acct_vm_mem1: u64, pub acct_timexpd: u64, pub mems_allowed: __anon_7, 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 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 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 kasan_depth: u32, pub curr_ret_stack: i32, pub curr_ret_depth: i32, pub __pad_4948: [u8; 4], pub ret_stack: *mut u64, pub ftrace_timestamp: u64, pub ftrace_sleeptime: u64, pub trace_overrun: __anon_2, pub tracing_graph_pause: __anon_2, pub trace_recursion: u64, pub memcg_nr_pages_over_high: u32, pub __pad_4996: [u8; 4], pub active_memcg: *mut c_void, pub objcg: *mut c_void, 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_5116: [u8; 4], 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_5168: [u8; 8], pub mce_kill_me: callback_head, pub mce_count: i32, pub __pad_5196: [u8; 4], pub kretprobe_instances: llist_head, pub rethooks: llist_head, pub l1d_flush_kill: callback_head, pub __pad_5232: [u8; 16], pub thread: thread_struct,
}

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§core_node: rb_node§core_cookie: u64§core_occupation: u32§__pad_940: [u8; 4]§sched_task_group: *mut c_void§uclamp_req: [uclamp_se; 2]§uclamp: [uclamp_se; 2]§__pad_968: [u8; 56]§stats: sched_statistics§btrace_seq: u32§policy: u32§max_allowed_capacity: u64§nr_cpus_allowed: i32§__pad_1044: [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_2108: [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_2172: [u8; 4]§rcu_tasks_exit_list: list_head§trc_reader_nesting: i32§trc_ipi_to_cpu: i32§trc_reader_special: rcu_special§__pad_2204: [u8; 4]§trc_holdout_list: list_head§trc_blkd_node: list_head§trc_blkd_cpu: i32§__pad_2244: [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_2412: [u8; 12]§atomic_flags: u64§restart_block: restart_block§pid: i32§tgid: i32§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§vtime: vtime§tick_dep_mask: __anon_2§__pad_2804: [u8; 4]§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§last_switch_count: u64§last_switch_time: u64§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_6§real_blocked: __anon_6§saved_sigmask: __anon_6§pending: sigpending§sas_ss_sp: u64§sas_ss_size: u64§sas_ss_flags: u32§__pad_3204: [u8; 4]§task_works: *mut callback_head§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§psi_flags: u32§__pad_3452: [u8; 4]§acct_rss_mem1: u64§acct_vm_mem1: u64§acct_timexpd: u64§mems_allowed: __anon_7§mems_allowed_seq: seqcount_spinlock§cpuset_mem_spread_rotor: i32§cgroups: *mut c_void§cg_list: list_head§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§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§kasan_depth: u32§curr_ret_stack: i32§curr_ret_depth: i32§__pad_4948: [u8; 4]§ret_stack: *mut u64§ftrace_timestamp: u64§ftrace_sleeptime: u64§trace_overrun: __anon_2§tracing_graph_pause: __anon_2§trace_recursion: u64§memcg_nr_pages_over_high: u32§__pad_4996: [u8; 4]§active_memcg: *mut c_void§objcg: *mut c_void§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_5116: [u8; 4]§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_5168: [u8; 8]§mce_kill_me: callback_head§mce_count: i32§__pad_5196: [u8; 4]§kretprobe_instances: llist_head§rethooks: llist_head§l1d_flush_kill: callback_head§__pad_5232: [u8; 16]§thread: thread_struct

Trait Implementations§

Source§

impl Clone for task_struct

Source§

fn clone(&self) -> task_struct

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for task_struct

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for task_struct

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for task_struct

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

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,

Causes self to use its Display implementation when Debug-formatted.
§

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,

Causes self to use its LowerHex implementation when Debug-formatted.
§

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,

Causes self to use its Pointer implementation when Debug-formatted.
§

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,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 T
where T: Default,

§

type NoneType = T

§

fn null_value() -> T

The none-equivalent value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where 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) -> R
where 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) -> R
where 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
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

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
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

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
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

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

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

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
where Self: BorrowMut<B>, B: ?Sized,

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
where Self: AsRef<R>, R: ?Sized,

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
where Self: AsMut<R>, R: ?Sized,

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
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more