Re-exports§
pub use self::db::SCHEMA_VERSION;
pub use self::protocol::RepositoryId;
pub use self::protocol::StorageSize;
pub use self::protocol::BLOCK_SIZE;
Modules§
- crypto
- db
- path
- Utilities for working with filesystem paths.
- protocol
- Datatypes for the ouisync protocol and for interoperability between the network layer and the storage later
Structs§
- Branch
- Credentials
- Credentials for accessing a repository.
- Debug
Printer - Decode
Error - Device
Id - DeviceId uniquely identifies machines on which this software is running. Its only purpose is to ensure that one WriterId (which currently equates to sing::PublicKey) will never create two or more concurrent snapshots as that would break the whole repository. This is achieved by ensuring that there is always only a single DeviceId associated with a single WriterId.
- Directory
- Event
- Notification event
- File
- Joint
Directory - Unified view over multiple concurrent versions of a directory.
- Metadata
- Network
- Network
Event Receiver - Network
Event Stream - Wrapper around
NetworkEventReceiver
that implementsStream
. - Peer
Info - Information about a peer.
- Peer
Info Collector - Progress
- Progress of a task.
- Public
Runtime Id - Registration
- Repository
- Repository
Handle - Repository
Params - Secret
Runtime Id - Share
Token - Token to share a repository. It can be encoded as a URL-formatted string and transmitted to other replicas.
- Stats
- Network traffic statistics.
- Version
Vector - Version vector.
- Write
Secrets - Secrets for write access.
Enums§
- Access
- Access
Change - How to change access to a repository.
- Access
Mode - Access mode of a repository.
- Access
Secrets - Secrets for access to a repository.
- Entry
Ref - Info about a directory entry.
- Entry
Type - Type of filesystem entry.
- Error
- Joint
Entry - Joint
Entry Ref - Local
Secret - Type of secret to unlock a repository.
- NatBehavior
- Network
Event - Network notification event.
- Payload
- Peer
Addr - Peer
Source - How was the peer discovered.
- Peer
State - SetLocal
Secret - Used to set or change the read or write local secret of a repository.
- Store
Error
Constants§
- BLOB_
HEADER_ SIZE - Size of the blob header in bytes.
- DATA_
VERSION - DHT_
ROUTERS - DIRECTORY_
VERSION - Version of the Directory serialization format.
Traits§
Functions§
- database_
files - List of repository database files. Includes the main db file and any auxiliary files.
- repository_
info_ hash
Type Aliases§
- Result
- A specialized
Result
type for convenience.