pub enum IntlRequest {
Watch {
responder: IntlWatchResponder,
},
Set {
settings: IntlSettings,
responder: IntlSetResponder,
},
}
Expand description
Settings related to internationalization such as locale, time zone, and temperature units.
Supported SettingsEpitaph enums: REQUEST_NOT_SUPPORTED, INTERNAL_SERVICE_ERROR, PERSISTENT_STORAGE_ERROR, FILE_READ_ERROR
Variants§
Watch
Gets the current IntlSettings. Returns immediately on first call; subsequent calls return when the value changes.
If this call fails, it is considered a fatal error and the channel will be closed.
Fields
§
responder: IntlWatchResponder
Set
Sets IntlSettings settings. Any field not explicitly set in the table performs a no-op, and will not make any changes.
Implementations§
Source§impl IntlRequest
impl IntlRequest
pub fn into_watch(self) -> Option<IntlWatchResponder>
pub fn into_set(self) -> Option<(IntlSettings, IntlSetResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntlRequest
impl !RefUnwindSafe for IntlRequest
impl Send for IntlRequest
impl Sync for IntlRequest
impl Unpin for IntlRequest
impl !UnwindSafe for IntlRequest
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