/// Gets the `DeliveryGuarantee` enum instance from integer value.
Gets the `DeliveryGuarantee` enum instance from integer value.
Gets the ` DeliveryGuarantee ` enum instance from integer value .
fn try_from(value: u8) -> Result<Self, Self::Error> {
        match value {
            0 => Ok(DeliveryGuarantee::Unreliable),
            1 => Ok(DeliveryGuarantee::Reliable),
            _ => Err(ErrorKind::DecodingError(
                DecodingErrorKind::DeliveryGuarantee,
            )),
        }
    }
fn try_from ( value : u8 ) -> Result < Self , Self :: Error > { match value { 0 => Ok ( DeliveryGuarantee :: Unreliable ) , 1 => Ok ( DeliveryGuarantee :: Reliable ) , _ => Err ( ErrorKind :: DecodingError ( DecodingErrorKind :: DeliveryGuarantee , ) ) , } }
Gets the `DeliveryGuarantee` enum instance from integer value.
Gets the ` DeliveryGuarantee ` enum instance from integer value .
value
u8