use-consistency 0.1.0

Consistency and durability label primitives for RustUse
Documentation
  • Coverage
  • 54.84%
    17 out of 31 items documented1 out of 17 items with examples
  • Size
  • Source code size: 8.68 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 782.41 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-nosql
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-consistency

Consistency and durability label primitives for RustUse.

Experimental

use-consistency is experimental while use-nosql remains below 0.3.0.

Example

use use_consistency::{ConsistencyLevel, Quorum, ReadConcern, ReplicationFactor};

let read = ReadConcern::new(ConsistencyLevel::LocalQuorum);
let replication = ReplicationFactor::new(3);
let quorum = Quorum::new(2);

assert_eq!(read.to_string(), "local-quorum");
assert_eq!(replication.value(), 3);
assert_eq!(quorum.value(), 2);

Scope

  • Consistency, read concern, write concern, durability, replication factor, and quorum labels.
  • Descriptive, vendor-neutral semantics.

Non-goals

  • Vendor-specific consistency guarantees.
  • Cluster management.
  • Read or write execution.

License

Licensed under either Apache-2.0 or MIT.