Skip to main content

Module sinks

Module sinks 

Source
Expand description

Phase 88.4 — PlatformSink + helpers.

The portable facade ships exactly ONE sink: PlatformSink. It forwards every record to nros_platform_log_write (declared in nros-platform-cffi / extended in Phase 88.3). Per-platform nros-platform-<rtos> crates own the actual delivery.

Apps wanting fan-out (e.g. Platform + /rosout or stdout in a test harness) compose their own &'static [&dyn LogSink] and pass it to crate::init.

Structs§

PlatformSink
The default sink: forwards to nros_platform_log_write.

Functions§

default
The default sink list: just &PLATFORM_SINK.
nros_platform_log_flush
Per-platform log flush. Default no-op on platforms that don’t buffer.
nros_platform_log_write
Per-platform log delivery (Phase 88). Declared in <nros/platform.h>; implementor lives in each nros-platform-<rtos> crate.