Module prelude

Module prelude 

Source
Expand description

Curated prelude for application code.

This is intentionally small and boring:

  • errors + common helpers used in examples
  • lane helpers (open + wait + router runner)
  • typed “happy path” constructors

Non-goal: re-export everything. Reach for module paths (e.g. indexbus_kit::msg::...) when needed.

Re-exports§

pub use crate::errors::Error;
pub use crate::errors::Result;
pub use crate::shm::remove_file_best_effort;
pub use crate::shm::temp_mmap;
pub use crate::lanes::routing::open_shm_fanout_region;
pub use crate::lanes::routing::spawn_shm_router;
pub use crate::lanes::routing::RouterThread;
pub use crate::lanes::sequencer::open_shm_sequencer_region;
pub use crate::lanes::sequencer::wait_for;
pub use crate::lanes::sequencer::WaitMode;
pub use crate::lanes::journal::open_shm_journal_region4;
pub use crate::lanes::journal::subscriber_cfg;
pub use crate::lanes::journal::tail_blocking;
pub use crate::typed::raw_codec;
pub use crate::typed::raw_kit;
pub use crate::typed::CodecKit;
pub use crate::typed::RawKit;