Crate nodecraft

Crate nodecraft 

Source
Expand description

NodeCraft

Crafting seamless node operations for distributed systems, which provides foundational traits for node identification and address resolution.

github LoC Build codecov

docs.rs crates.io crates.io license

§Installation

[dependencies]
nodecraft = "0.8"

§Examples

See memberlist, an async runtime agnostic GOSSIP protocol implementation.

§License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Re-exports§

pub use futures;async
pub use hostaddr;hostaddr

Modules§

resolverresolver
AddressResolver trait for async.

Structs§

ArchivedNode
An archived Node
Node
Node is consist of id and address, which can be used as a identifier in a distributed system.
NodeIdstd or alloc
A unique string identifying a server for all time. The maximum length of an id is 512 bytes.
NodeIdRef
A unique string identifying a server for all time. The maximum length of an id is 512 bytes.
NodeResolver
The resolver for an archived Node

Enums§

ParseNodeIdError
Errors that can occur when transforming an NodeId.

Traits§

Address
Address abstraction for distributed systems
CheapClone
Things that are fast to clone in the context of an application.
Id
Id abstraction for distributed systems

Type Aliases§

Domainhostaddr
Domain type alias
DomainBufferhostaddr
Domain type alias
HostAddrhostaddr
Host address type alias
HostAddrBufferhostaddr
Host address type alias