Skip to main content

Crate armour

Crate armour 

Source

Re-exports§

pub use cid::Cid;
pub use dyn_types::value::Value;
pub use error::DbError;
pub use error::DbResult;
pub use indexes::index::CompositionIndex;
pub use indexes::index::HashIndexExtractor;
pub use logdb::IterTree;
pub use logdb::db::Db;
pub use logdb::read::ReadTree;
pub use logdb::tree::TypedTree;
pub use record::Migration;
pub use record::Record;
pub use transactional::db::TxDb;
pub use transactional::raw::TxRawTree;
pub use transactional::read::TxReadTree;
pub use transactional::tree::TxTree;
pub use types::entry::Entry;
pub use armour_core;
pub use fjall;
pub use rapira;

Modules§

cid
dyn_types
error
indexes
logdb
migrations
record
replication
rpc
snapshot
transactional
types
utils

Macros§

bytemuck_slice_record
bytemuck_record!(User, UserID, sled::InlineArray, “users”)
const_hasher
key should be Base64Url decoded 56 bytes long (~ 75 chars)
hasher
key should be Base64Url decoded 56 bytes long (~ 75 chars)
rapira_record
rapira_record!(User, UserID, sled::InlineArray, “users”)
zerocopy_cid
zerocopy_cid!(Key, [KeyType::U64...], Type::GROUP_BITS, field_name)
zerocopy_record
zerocopy_record!(User, UserID, sled::InlineArray, “users”)

Structs§

Fuid
64bit id [–timestamp(40)–|–shard_id(8)–|–seq_id(16)–]40 bit - timestamp (in milliseconds) started from 2023-04-09 0:00:00 UTC, 34 years available (from 2023 to 2057)8 bit - shard_id ([datacenter_id / instance_id] with thread_id), 256 values16 bit - random sequence id (unique for thread / per thread), 65_536 valuesBlowfish for encryptionZBASE32 for encoding into 13 length string (example: “ifs1gp9dw8hdw”)create ~ 50ns (~ 21k in 1ms or 21m in 1s) in 1 thread
Id64
64bit sequence idBlowfish for encryption (64bit block)ZBASE32 for encoding into 13 length string
Slice
An immutable byte slice that can be cloned without additional heap allocation

Enums§

KeyScheme
KeyType
RecordStatus
Active: 0, Disabled: 1, Deleted: 255 deleted - навсегда, disabled - можно потом восстановить.
RecvError
An error returned from Receiver::recv().
Typ

Traits§

GetType

Type Aliases§

KV

Attribute Macros§

armour_metrics
Adds metrics tracking to the function.

Derive Macros§

GetType
#[get_type(idx = 1)] in fields#[get_type(flatten)] for unnamed structs#[get_type(with_type(Type))] for named struct fields#[get_type(unimplemented)] for named struct fields#[get_type(custom("name", &[Typ::Bool, Typ::Str]))] for named struct fields