Module prelude

Module prelude 

Source
Expand description

Add use dittolive_ditto::prelude::*; to import frequently-used Ditto functionality.

The prelude contains all common imports when using this crate.

Re-exports§

pub use crate::disk_usage::DiskUsage;
pub use crate::disk_usage::DiskUsageItem;
pub use crate::disk_usage::DiskUsageObserverHandle;
pub use crate::disk_usage::FileSystemType;
pub use crate::error::DittoError;
pub use crate::fs::DittoRoot;
pub use crate::fs::PersistentRoot;
pub use crate::fs::TempRoot;
pub use crate::identity;
pub use crate::identity::DittoAuthenticationEventHandler;
pub use crate::identity::DittoAuthenticator;
pub use crate::logger::DittoLogger;
pub use crate::presence::ConnectionRequest;
pub use crate::presence::ConnectionRequestAuthorization;
pub use crate::presence::Presence;
pub use crate::presence::PresenceGraph;
pub use crate::presence::PresenceObserver;
pub use crate::store::attachment::DittoAttachment;
pub use crate::store::attachment::DittoAttachmentFetchEvent;
pub use crate::store::attachment::DittoAttachmentFetcher;
pub use crate::store::attachment::DittoAttachmentToken;
pub use crate::store::transactions::CreateTransactionOptions;
pub use crate::store::transactions::Transaction;
pub use crate::store::transactions::TransactionCompletionAction;
pub use crate::store::transactions::TransactionInfo;
pub use crate::store::DocumentId;
pub use crate::store::Store;
pub use crate::transport::HttpListenConfig;
pub use crate::transport::TcpListenConfig;
pub use crate::transport::TransportConfig;
pub use crate::DatabaseId;
pub use crate::Ditto;

Structs§

DittoConfig
Configuration options required to initialize a Ditto instance.

Enums§

CLogLevel
CborValue
The Value enum, a loosely typed way of representing any valid CBOR value.
DittoConfigConnect
Specifies the connection mechanism to be used by the Ditto instance.
DittoSmallPeerInfoSyncScope
Determines which “kind” of peers the small peer info will be replicated to, defaults to DittoSmallPeerInfoSyncScope::BigPeerOnly. Which peers to replicate the __small_peer_info collection to.
LogLevel
The log levels that the Ditto SDK supports.
StringPrimitiveFormat

Traits§

CborValueGetters
DittoAuthExpirationHandler
Trait describing types which can be used as an authentication expiration handler for Ditto.
IntoQuery
Types which can be used to construct a Query.

Type Aliases§

BoxedDitto
BoxedDocument