Skip to main content

Module prelude

Module prelude 

Source
Expand description

Convenient imports for ordinary Tokio Lace applications.

Re-exports§

pub use crate::types::IntoPolicy;
pub use crate::BoundedInterlace;
pub use crate::ConnectedPeer;
pub use crate::ForEachStream;
pub use crate::Lace;
pub use crate::LaceHandle;
pub use crate::LocalPeer;
pub use crate::OpenInterlace;
pub use crate::Participant;
pub use crate::RecordStream;
pub use crate::Result;
pub use crate::StoreStream;
pub use crate::bounded_interlace;
pub use crate::bounded_interlace_with_options;
pub use crate::for_each;
pub use crate::for_each_with_options;
pub use crate::get;
pub use crate::get_with_options;
pub use crate::list;
pub use crate::list_with_options;
pub use crate::open_interlace;
pub use crate::open_interlace_with_options;
pub use crate::open_interlace_with_selector;
pub use crate::read_record_stream;
pub use crate::store;
pub use crate::store_stream;
pub use crate::store_stream_with_options;
pub use crate::store_with_options;

Macros§

record
Build and validate a record from a RecordSpec literal.
spec
Build a RecordSpec from Rust literal syntax.

Structs§

BoundedInterlaceOutcome
BySecret
The single zeroizing owner for canonical private By-secret value (&.<b64a>.H3).
ByValue
Canonical record-facing By value (V.<b64a>.H3).
ChannelBinding
Binding supplied by the owner of a completed encrypted channel. This value is public transcript data, not an independent authority credential.
ConnectedPeerOptions
Error
FieldOccurrence
One borrowed Plex application-field occurrence.
GetOutcome
InterlaceModule
Public 040 interlace module.
InterlaceOperationOptions
InterlaceResourceLimits
ListOutcome
OpenBoundaryOutcome
PortText
What a preface’s sender wants to talk to: SEGMENT(/SEGMENT)*, each segment one or more printable ASCII bytes other than /, at most PORT_MAX_BYTES in total.
PortableStoreFormat
The sizes a portable file store root is created with. Reopening a root uses the sizes recorded at its creation.
Record
A validated record: verified canonical bytes from one retained source.
RecordHash
RecordSpec
Application-facing record construction intent.
SessionOperand
One logical session’s prepared local operand and optional expected peer By.
StoreOutcome
StoreRecordResult

Enums§

CarrierRole
CloseReason
ErrorCategory
The Lace-100 error category shared by machine, core, and public errors.
InterlaceEvent
A bounded-outcome event; RecordSaved reports only the record hash.
OpenBoundary
OpenEvent
An open-stream event. RecordSaved carries the admitted owned record; bounded outcomes project it to the hash-only InterlaceEvent.
ParticipantPosition
PeerProofAssurance
RecordCreateError
Error returned by application-facing record construction.
RecordKind
Record kind identified by the record glyph line.
StoreRecordDisposition
StreamEncoding
One direction’s stream encoding, named by its preface token.
Terminal
TimeoutPhase

Traits§

IntoRecordBatch
Convert owned or borrowed validated records into a store-operation batch.

Functions§

generate_by_secret
Generate a canonical By-secret value from OS randomness.
new_record
Construct and validate the one record kind implied by caller intent.