Struct dittolive_ditto::AppId
source · pub struct AppId(/* private fields */);
Expand description
The ID of this Ditto App, used to determine which peers to sync with
Implementations§
source§impl 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 Freeze for AppId
impl RefUnwindSafe for AppId
impl Send for AppId
impl Sync for AppId
impl Unpin for AppId
impl UnwindSafe for AppId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)