Enum rustable::gatt::ValOrFn [−][src]
pub enum ValOrFn { Value(AttValue), Function(Box<dyn FnMut() -> AttValue + Send + Sync + 'static>), }
Expand description
Use to set the value of a local characteristic or descriptor. The value can be an actual value or it can be callback that returns value.
Variants
Value(AttValue)
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ValOrFn
impl !UnwindSafe for ValOrFn