// Copyright 2025 International Digital Economy Academy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
///|
fn[T : Debug] debug_show_output(value : T, logger : &Logger) -> Unit {
logger.write_string(@debug.to_string(value))
}
///|
pub impl Show for Signal with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Pid with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Uid with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Gid with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for DiskUsage with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for LoadAvg with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for CGroupLimits with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for ProcessStatus with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for ThreadKind with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for UpdateKind with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for KillError with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for DiskKind with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for MacAddr with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for IpNetwork with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for ProcessesToUpdate with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for ExitStatus with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Cpu with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Process with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Disk with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for NetworkData with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Component with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Group with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for User with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for ProcessRefreshKind with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for CpuRefreshKind with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for MemoryRefreshKind with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for RefreshKind with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for DiskRefreshKind with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for CpuSnapshot with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Disks with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for DiskIoSnapshot with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for MacosDiskInfo with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for MountEntry with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Networks with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Components with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Users with output(self, logger) {
debug_show_output(self, logger)
}
///|
pub impl Show for Groups with output(self, logger) {
debug_show_output(self, logger)
}