Searched refs:PropertyWatcherError (Results 1 – 2 of 2) sorted by relevance
22 pub enum PropertyWatcherError { enum53 pub type Result<T> = std::result::Result<T, PropertyWatcherError>;60 FetchError(PropertyWatcherError),63 SetError(PropertyWatcherError),
19 pub use self::error::{PropertyWatcherError, Result};115 let prop_info = self.get_prop_info().ok_or(PropertyWatcherError::SystemPropertyAbsent)?; in read()116 let mut result = Err(PropertyWatcherError::ReadCallbackNotCalled); in read()120 let name = name.ok_or(PropertyWatcherError::MissingCString)?.to_str()?; in read()121 let value = value.ok_or(PropertyWatcherError::MissingCString)?.to_str()?; in read()122 f(name, value).map_err(PropertyWatcherError::CallbackError) in read()152 return Err(PropertyWatcherError::WaitFailed); in wait_for_property_creation_until()185 return Err(PropertyWatcherError::WaitFailed); in wait_for_property_change_until()223 Err(PropertyWatcherError::SystemPropertyAbsent) => Ok(None), in read()273 Err(PropertyWatcherError::SetPropertyFailed) in write()[all …]