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)
Function(Box<dyn FnMut() -> AttValue + Send + Sync + 'static>)

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.