pub struct BuiAppInner<T, CB> { /* private fields */ }
Expand description
Maintain state within a BUI application.
Implementations§
Source§impl<'a, T, CB> BuiAppInner<T, CB>
impl<'a, T, CB> BuiAppInner<T, CB>
Get reference counted reference to the underlying data store.
Sourcepub fn bui_service(&self) -> &BuiService<CB>
pub fn bui_service(&self) -> &BuiService<CB>
Get reference to to the underlying BuiService
.
Sourcepub fn local_addr(&self) -> &SocketAddr
pub fn local_addr(&self) -> &SocketAddr
Get our local IP address.
Sourcepub fn token(&self) -> AccessToken
pub fn token(&self) -> AccessToken
Get our access token.
Sourcepub fn guess_url_with_token(&self) -> String
pub fn guess_url_with_token(&self) -> String
Attempt to get our URL.
This may fail if, for example, the locally known IP address is not the IP address that users will connect to.
Auto Trait Implementations§
impl<T, CB> Freeze for BuiAppInner<T, CB>
impl<T, CB> !RefUnwindSafe for BuiAppInner<T, CB>
impl<T, CB> Send for BuiAppInner<T, CB>
impl<T, CB> !Sync for BuiAppInner<T, CB>
impl<T, CB> Unpin for BuiAppInner<T, CB>
impl<T, CB> !UnwindSafe for BuiAppInner<T, CB>
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