ChannelUpdate#
- pub struct ChannelUpdate#
An update to a channel’s metadata. Only optional fields that are set will change.
Implementations#
- impl ChannelUpdate
- pub fn new(data_type: ChannelDataType) -> Self#
- pub fn unit(self, symbol: impl Into<String>) -> Self#
Set the channel’s unit by symbol (e.g.
"m/s","celsius").
- pub fn clear_unit(self) -> Self#
Clear any unit previously set on the channel.
Trait implementations#
Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe