pub fn new(id: u16, payload_length: usize) -> Result<Self, Error> {
        let length = Self::calculate_length_field(payload_length)?;

        Self::from_raw(id, length)
    }
/// Create a FrameHeader, calculating length field based on payload_length
Create a FrameHeader, calculating length field based on payload_length
Create a FrameHeader calculating length field based on payload_length
pub fn new(id: u16, payload_length: usize) -> Result<Self, Error> {
        let length = Self::calculate_length_field(payload_length)?;
        Self::from_raw(id, length)
    }
pub fn new ( id : u16 , payload_length : usize ) -> Result < Self , Error > { let length = Self :: calculate_length_field ( payload_length ) ? ; Self :: from_raw ( id , length ) }
Create a FrameHeader, calculating length field based on payload_length
Create a FrameHeader calculating length field based on payload_length
id
u16
payload_length
usize
id
u16
payload_length
usize