Skip to main content

Crate waterkit_core

Crate waterkit_core 

Source
Expand description

§waterkit-core

Shared primitives for the waterkit utility kit. See README.md for the full design rationale.

Re-exports the most-used items so capability crates can write use waterkit_core::{Subscribed, Brightness, Permission, Timestamp}; without fishing through submodules.

Re-exports§

pub use capability::Capabilities;
pub use error::CoreError;
pub use permission::HealthDataKind;
pub use permission::Permission;
pub use permission::PermissionError;
pub use permission::PermissionStatus;
pub use subscribed::Subscribed;
pub use subscribed::SubscribedSink;
pub use subscribed::subscribed;
pub use subscribed::subscribed_with_executor;
pub use units::Brightness;
pub use units::Latitude;
pub use units::Longitude;
pub use units::OutOfRange;
pub use units::Pan;
pub use units::Pitch;
pub use units::PlaybackRate;
pub use units::RefreshRate;
pub use units::Volume;
pub use units::Zoom;

Modules§

capability
Capability-probe pattern.
error
Shared error variants for cross-cutting failures.
id
Identifier types used across the waterkit workspace.
permission
Cross-cutting permission types.
subscribed
Cross-thread reactive state.
time
Standard time types used across the waterkit workspace.
units
Typed scalar wrappers with validated value ranges.

Structs§

Duration
A Duration type to represent a span of time, typically used for system timeouts.
Timestamp
An instant in time represented as the number of nanoseconds since the Unix epoch.
Uuid
A Universally Unique Identifier (UUID).