Struct i18n_embed::WebLanguageRequester [−][src]
pub struct WebLanguageRequester<'a> { /* fields omitted */ }
Expand description
A LanguageRequester for the web-sys
web platform.
⚠️ This API requires the following crate features to be activated: web-sys-requester
.
Implementations
The languages currently being requested by the browser context.
Trait Implementations
The currently requested languages.
Add a listener to this LanguageRequester
. When the system
reports that the currently requested languages has changed,
each listener will have its
Localizer#select() method called. Weak
is used so that when the Arc that it references
is dropped, the listener will also be removed next time this
requester is polled/updates. Read more
Add a listener to this LanguageRequester
. When the system
reports that the currently requested languages has changed,
each listener will have its
Localizer#select() method called. As
opposed to LanguageRequester::add_listener(), this listener
will not be removed. Read more
Poll the system’s currently selected language, and call Localizer#select() on each of the listeners. Read more
fn set_language_override(
&mut self,
language_override: Option<LanguageIdentifier>
) -> Result<(), I18nEmbedError>
[src]
fn set_language_override(
&mut self,
language_override: Option<LanguageIdentifier>
) -> Result<(), I18nEmbedError>
[src]The languages currently loaded, keyed by the LanguageLoader::domain(). Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for WebLanguageRequester<'a>
impl<'a> !Send for WebLanguageRequester<'a>
impl<'a> !Sync for WebLanguageRequester<'a>
impl<'a> Unpin for WebLanguageRequester<'a>
impl<'a> !UnwindSafe for WebLanguageRequester<'a>