pub fn decode_key(bytes: &[u8]) -> Result<CoordinationKey, RecordError>Expand description
Decodes a key of COORDINATION_STATE_TOPIC.
ยงErrors
Returns RecordError::Format when the buffer is truncated, when it holds
trailing bytes, when the version is not 0, when the kind is neither 0
nor 1, when a string length is negative, when a string is not UTF-8, or
when a lease key names a member. Returns RecordError::Empty or
RecordError::TooLong when the role, or the member of a registration key,
is empty or too long.