pub struct SettingsValue<T> {
pub value: T,
pub error: String,
}Expand description
Settings::get method returns this structure. It is composed by 2 public attributes first ‘value’ is the value returned second ‘error’ can contains the possible error occured during the Setting::get method or an empty string in case everything has gone well. see Setting get method for an example
Fields§
§value: T§error: StringAuto Trait Implementations§
impl<T> Freeze for SettingsValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for SettingsValue<T>where
T: RefUnwindSafe,
impl<T> Send for SettingsValue<T>where
T: Send,
impl<T> Sync for SettingsValue<T>where
T: Sync,
impl<T> Unpin for SettingsValue<T>where
T: Unpin,
impl<T> UnwindSafe for SettingsValue<T>where
T: UnwindSafe,
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