[−][src]Module my_iot::prelude
Re-exports
pub use crate::core::bus::Bus; |
pub use crate::core::message::Composer; |
pub use crate::core::message::Message; |
pub use crate::core::message::Type as MessageType; |
pub use crate::core::persistence::reading::Reading; |
pub use crate::core::persistence::sensor::Sensor; |
pub use crate::core::supervisor; |
pub use crate::core::value::PointOfTheCompass; |
pub use crate::core::value::Value; |
Macros
| debug | Logs a message at the debug level. |
| error | Logs a message at the error level. |
| format_err | Constructs an |
| info | Logs a message at the info level. |
| warn | Logs a message at the warn level. |
Structs
| Arc | A thread-safe reference-counting pointer. 'Arc' stands for 'Atomically Reference Counted'. |
| Connection | A connection to a SQLite database. |
| Date | ISO 8601 calendar date with time zone. |
| DateTime | ISO 8601 combined date and time with time zone. |
| Duration | ISO 8601 time duration with nanosecond precision. This also allows for the negative duration; see individual methods for details. |
| Error | The |
| FixedOffset | The time zone with fixed offset, from UTC-23:59:59 to UTC+23:59:59. |
| Local | The local timescale. This is implemented via the standard |
| Mutex | A mutual exclusion primitive useful for protecting shared data |
| NaiveDate | ISO 8601 calendar date without timezone. Allows for every proleptic Gregorian date from Jan 1, 262145 BCE to Dec 31, 262143 CE. Also supports the conversion from ISO 8601 ordinal and week date. |
| NaiveDateTime | ISO 8601 combined date and time without timezone. |
| NaiveTime | ISO 8601 time without timezone. Allows for the nanosecond precision and optional leap second representation. |
| Receiver | The receiving side of a channel. |
| Sender | The sending side of a channel. |
| Utc | The UTC time zone. This is the most efficient time zone when you don't need the local time. It is also used as an offset (which is also a dummy type). |
Enums
| SecondsFormat | Specific formatting options for seconds. This may be extended in the future, so exhaustive matching in external code is not recommended. |
| Weekday | The day of week. |
Traits
| Datelike | The common set of methods for date component. |
| Deserialize | A data structure that can be deserialized from any data format supported by Serde. |
| Offset | The offset from the local time to UTC. |
| Serialize | A data structure that can be serialized into any data format supported by Serde. |
| SubsecRound | Extension trait for subsecond rounding or truncation to a maximum number of digits. Rounding can be used to decrease the error variance when serializing/persisting to lower precision. Truncation is the default behavior in Chrono display formatting. Either can be used to guarantee equality (e.g. for testing) when round-tripping through a lower precision format. |
| TimeZone | The time zone. |
| Timelike | The common set of methods for time component. |
Type Definitions
| Result |
Derive Macros
| Deserialize | |
| Serialize |