pub fn int32_be(&self) -> Result<i32> {
        Ok(i32::from_be_bytes(
            self.data
                .as_slice()
                .try_into()
                .map_err(|_| ParseError::Int32BE)?,
        ))
    }
/// Try to parse the body by big endian int32.
///
/// # Errors
/// It may fail if it's not a int packet.
/// You may check the type of the packet by [`Packet::proto`](Packet::proto).
Try to parse the body by big endian int32.
Try to parse the body by big endian int32 .
pub fn int32_be(&self) -> Result<i32> {
        Ok(i32::from_be_bytes(
            self.data
                .as_slice()
                .try_into()
                .map_err(|_| ParseError::Int32BE)?,
        ))
    }
pub fn int32_be ( & self ) -> Result < i32 > { Ok ( i32 :: from_be_bytes ( self . data . as_slice ( ) . try_into ( ) . map_err ( | _ | ParseError :: Int32BE ) ? , ) ) }
Try to parse the body by big endian int32.
Try to parse the body by big endian int32 .
&self
&self
errors
It may fail if it's not a int packet.
You may check the type of the packet by [`Packet::proto`](Packet::proto).
It may fail if it ' s not a int packet . You may check the type of the packet by [ ` Packet :: proto ` ] ( Packet :: proto ) .