pub struct LoggingConfig {
pub enable_task_logging: bool,
pub enable_keyframe_logging: bool,
pub copperlist_count: Option<usize>,
pub slab_size_mib: Option<u64>,
pub section_size_mib: Option<u64>,
pub keyframe_interval: Option<u32>,
pub codecs: Vec<LoggingCodecSpec>,
}Fields§
§enable_task_logging: boolEnable task logging to the log file.
enable_keyframe_logging: boolGenerate and record task-state keyframes.
Without another generated keyframe consumer, this is a compile-time application
property and #[copper_runtime] emits no capture calls when it is false.
A log-stream destination independently requests keyframe capture for recovery points.
copperlist_count: Option<usize>Number of preallocated CopperLists available to the runtime.
This is consumed by proc-macro codegen and must match the value compiled into the application binary.
slab_size_mib: Option<u64>Size of each slab in the log file. (it is the size of the memory mapped file at a time)
section_size_mib: Option<u64>Pre-allocated size for each section in the log file.
keyframe_interval: Option<u32>Interval in copperlists between two “keyframes” in the log file i.e. freezing tasks.
codecs: Vec<LoggingCodecSpec>Named log codec specs reusable across task output bindings.
Implementations§
Trait Implementations§
Source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
Source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoggingConfig
impl Debug for LoggingConfig
Source§impl Default for LoggingConfig
impl Default for LoggingConfig
Source§impl<'de> Deserialize<'de> for LoggingConfig
impl<'de> Deserialize<'de> for LoggingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for LoggingConfig
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnsafeUnpin for LoggingConfig
impl UnwindSafe for LoggingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> GetTypeRegistration for T
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> ⓘ
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> ⓘ
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