Skip to main content

oxilean_runtime/io_runtime/
ioruntime_traits.rs

1//! # IoRuntime - Trait Implementations
2//!
3//! This module contains trait implementations for `IoRuntime`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//! - `Debug`
9//!
10//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
11
12use super::types::IoRuntime;
13use std::fmt;
14
15impl Default for IoRuntime {
16    fn default() -> Self {
17        Self::new()
18    }
19}
20
21impl fmt::Debug for IoRuntime {
22    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
23        f.debug_struct("IoRuntime")
24            .field("refs", &self.refs.len())
25            .field("io_enabled", &self.io_enabled)
26            .field("has_output_buffer", &self.output_buffer.is_some())
27            .field("input_queue_len", &self.input_queue.len())
28            .finish()
29    }
30}