fn try_from(value: u8) -> Result<Self, Self::Error> {
        match value {
            0 => Ok(OrderingGuarantee::None),
            1 => Ok(OrderingGuarantee::Sequenced(None)),
            2 => Ok(OrderingGuarantee::Ordered(None)),
            _ => Err(ErrorKind::DecodingError(
                DecodingErrorKind::OrderingGuarantee,
            )),
        }
    }
/// Returns the `OrderingGuarantee` enum instance from integer value.
Returns the `OrderingGuarantee` enum instance from integer value.
Returns the ` OrderingGuarantee ` enum instance from integer value .
fn try_from(value: u8) -> Result<Self, Self::Error> {
        match value {
            0 => Ok(OrderingGuarantee::None),
            1 => Ok(OrderingGuarantee::Sequenced(None)),
            2 => Ok(OrderingGuarantee::Ordered(None)),
            _ => Err(ErrorKind::DecodingError(
                DecodingErrorKind::OrderingGuarantee,
            )),
        }
    }
fn try_from ( value : u8 ) -> Result < Self , Self :: Error > { match value { 0 => Ok ( OrderingGuarantee :: None ) , 1 => Ok ( OrderingGuarantee :: Sequenced ( None ) ) , 2 => Ok ( OrderingGuarantee :: Ordered ( None ) ) , _ => Err ( ErrorKind :: DecodingError ( DecodingErrorKind :: OrderingGuarantee , ) ) , } }
Returns the `OrderingGuarantee` enum instance from integer value.
Returns the ` OrderingGuarantee ` enum instance from integer value .
value
u8
value
u8