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§
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 theCopy
trait, simply drop the&
to the left of each type. - wrapper
Structs§
- Direction
Iter - An iterator over the variants of Direction
- Error
Base - 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 theRawState
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§
Traits§
- Error
Kind - 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 aBox
of a trait object implementingcore::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