saddle-observability 0.2.0-rc.6

Saddle structured logging and trace correlation
Documentation
//! Crate-private fixed-resource file core.
//!
//! Observability owns no thread. The Runtime invokes the single blocking writer
//! entry after preparing the Admission-owned fixed queue domain.

mod codec;
mod completion;
mod fixed_core;
mod linux_backend;
mod termination;

pub use completion::{CompletionResult, CompletionRole};
pub use fixed_core::{
    CompletionSignal, FixedCompletion, FixedCoreLayout, FixedFailure, FixedFileLimits,
    FixedFileSink, FixedNotification, FixedWriterEntry, PreparedFixedFileCore, SubmitError,
    fixed_core_layout, prepare_fixed_file_core,
};
pub use termination::{
    DeploymentFilesystemServiceAttestation, FilesystemDeploymentIdentity, FilesystemProofError,
    FilesystemServiceRates, FilesystemTarget, FilesystemWorkDomain, VerifiedFilesystemServiceProof,
    WriterComponentWorkProof, WriterTerminationProof, verify_filesystem_service,
    verify_provider_writer_termination, writer_component_work_proof,
};

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum FileStream {
    Access,
    Trace,
    Event,
    System,
}

impl FileStream {
    pub(super) const ALL: [Self; 4] = [Self::Access, Self::Trace, Self::Event, Self::System];

    pub(super) const fn index(self) -> usize {
        self as usize
    }
}