Struct dittolive_ditto::ditto::AppId
source · [−]pub struct AppId(_);
Expand description
The Ditto application Id
Implementations
sourceimpl AppId
impl AppId
sourcepub fn from_env(var: &str) -> Result<Self, DittoError>
pub fn from_env(var: &str) -> Result<Self, DittoError>
Attempt to grab a specific AppId from some environment variable
sourcepub fn to_c_string(&self) -> Box
pub fn to_c_string(&self) -> Box
Return the corresponding c string
sourcepub fn default_auth_url(&self) -> String
pub fn default_auth_url(&self) -> String
Return the default auth URL associated with the app Id. This is of the form
https://{app_id}.cloud.ditto.live/
by default.
sourcepub fn default_sync_url(&self) -> String
pub fn default_sync_url(&self) -> String
Return the default WebSocket sync URL which is of the form
wss://{app_id}.cloud.ditto.live/
by default.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AppId
impl Send for AppId
impl Sync for AppId
impl Unpin for AppId
impl UnwindSafe for AppId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CompatExt for T
impl<T> CompatExt for T
fn compat_ref(&self) -> Compat<&T>
fn compat_ref(&self) -> Compat<&T>
Applies the [
Compat
] adapter by shared reference. Read morefn compat_mut(&mut self) -> Compat<&mut T>
fn compat_mut(&mut self) -> Compat<&mut T>
Applies the [
Compat
] adapter by mutable reference. Read more