Enum rustable::gatt::ValOrFn [−][src]
pub enum ValOrFn { Value(AttValue), Function(Box<dyn FnMut() -> AttValue + Send + Sync + 'static>), }
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
impl ValOrFn
[src]
impl ValOrFn
[src]