Trait dittolive_ditto::identity::Identity[][src]

pub trait Identity: Sealed + Send + Sync {
    fn site_id(&self) -> SiteId;
fn auth_client(&self) -> Arc<BoxedAuthClient>;
fn authenticator(&self) -> Option<DittoAuthenticator>;
fn make_listener(
        &self,
        transports: Arc<RwLock<Transports>>
    ) -> Option<Arc<ValidityListener>>;
fn app_id(&self) -> Option<&AppId>;
fn ditto_root(&self) -> Arc<dyn DittoRoot>;
fn is_web_valid(&self) -> bool;
fn is_x509_valid(&self) -> bool;
fn is_cloud_sync_enabled(&self) -> bool;
fn auth_url(&self) -> Result<String, DittoError>;
fn sync_url(&self) -> Result<String, DittoError>;
fn requires_offline_only_license_token(&self) -> bool; }

Required methods

Returns the current SiteId identifying the Ditto peer

Returns a shared reference to the underlying AuthClient

Returns the underlying DittoAuthenticator if specified

Constructs a ValidityListener given a shared reference to the Ditto Transports

Returns the current AppId

Returns the current DittoRoot

Returns if the curernt web auth token is valid

Returns if the configured x509 certificate is valid

Indicates if cloud sync should be enabled by default

Returns the configured URL for Auth

Returns the configured URL for websocket sync

Indicates whether the specific Identity type requires an offline only license token to be set.

Implementors