1#![cfg_attr(not(feature = "std"), no_std)]
2
3extern crate alloc;
4
5pub mod attachment;
6pub mod hash;
7pub mod identity;
8pub mod lxmf_min;
9pub mod packet;
10pub mod replay;
11pub mod store;
12pub mod transport;
13
14#[derive(Debug, Clone, Copy, Eq, PartialEq)]
15pub enum EmbeddedError {
16 InvalidInput,
17 InvalidArgument,
18 InvalidCursor,
19 InvalidState,
20 NotFound,
21 SeqGap,
22 IntegrityFailure,
23 ChecksumMismatch,
24 IdempotencyConflict,
25 ReplayRejected,
26 Timeout,
27 Backpressure,
28 Disconnected,
29 StorageCorruption,
30 Unsupported,
31}
32
33pub type EmbeddedResult<T> = core::result::Result<T, EmbeddedError>;