Crate tcgeneric

Source
Expand description

Provides generic data types used across multiple TinyChain sub-crates.

This library is a part of TinyChain: http://github.com/haydnv/tinychain

Modules§

link

Structs§

ClassVisitor
Id
A human-readable ID
Label
A static label which implements Into<Id>.
Map
A generic map whose keys are Ids, based on BTreeMap
NetworkTime
The current time of the TinyChain network, used to generate transaction IDs.
PathLabel
A constant representing a PathBuf.
TCPath
A segmented link safe to use with a filesystem or via HTTP.
TCPathBuf
A segmented link buffer safe to use with a filesystem or via HTTP.
Tuple
A generic tuple type, based on Vec

Traits§

Class
A generic class trait
Instance
A generic instance trait
NativeClass
A generic native (i.e. implemented in Rust) class trait
ThreadSafe
A thread-safe type

Functions§

label
Return a Label with the given static str.
path_label
Return a PathLabel with the given segments.

Type Aliases§

PathSegment
A segment of a Path
TCBoxFuture
A pinned future
TCBoxStream
A pinned Stream
TCBoxTryFuture
A pinned future which returns a TCResult
TCBoxTryStream
A pinned TryStream with error type TCError