Lines Matching refs:SetError
214 Err(_) => Err(SetError::BadName(name.to_string())), in lookup()
227 _ => Err(SetError::BadValue("bool".to_string())), in parse_bool_value()
234 None => Err(SetError::BadValue(format!( in parse_enum_value()
254 _ => Err(SetError::BadType), in enable()
268 .map_err(|_| SetError::BadValue("number".to_string()))?; in set()
274 Detail::Preset => return Err(SetError::BadName(name.to_string())), in set()
282 pub enum SetError { enum
293 impl core::error::Error for SetError {} implementation
295 impl fmt::Display for SetError { implementation
298 SetError::BadName(name) => write!(f, "No existing setting named '{name}'"), in fmt()
299 SetError::BadType => { in fmt()
302 SetError::BadValue(value) => { in fmt()
310 pub type SetResult<T> = Result<T, SetError>;
480 use super::SetError::*;