Crate scsys_core

Source
Expand description

This crate works to provide a set of utilities for working with state, time, and synchronization in Rust.

Re-exports§

pub use rand;
pub use rand_distr;

Modules§

error
id
Identity
prelude
state
State
time
Time
types

Macros§

builder
fmt_wrapper
Example
gsw
The gsw macro generates getter and setter methods for the fields of a struct. At the moment, the macro can handle any type; for types that implement the Copy trait, simply drop the & to the left of each type.
wrapper

Structs§

DirectionIter
An iterator over the variants of Direction
ErrorBase
Id
A generic identifier
NState
[State] is an abstract object that allows a particular kind of state to be associated with some data.
State
State is a generic type wrapper materializing the RawState trait.
StdError
The StdError type is a generic error type that is generic over the error kind; this enables us to distinguish between distinctly different error types.
Timestamp
Timestamp is a generic implementation of a type that represents some point in time.

Enums§

CoreError
Direction

Traits§

ErrorKind
this trait is used to denote various error kinds for use throughout the sdk
Now
The Now trait provides a common creation routines for all datetime implementations.
RawState
RawState
RawTimestamp
a private trait used to mark types capable of being uses as a basetype for a Timestamp.
Stateful
a trait for denoting stateful entities

Type Aliases§

Arcm
Type alias wrapping a locked, thread-safe structure with a [Mutex] in an [Arc]
BoxErr
A type alias for a Err whose generic type is a Box of a trait object implementing core::error::Error.
BoxError
Type alias for a boxed error with send, sync, and static flags enabled
BoxResult
Type alias for the standard result used
IOResult
Type alias for std::io::Result
Result
a type alias for a Result type pre-configured with the [Error] type