fn from_raw(id: u16, length: u16) -> Result<Self, Error> {
        if id > ID_MAX {
            return Err(Error::InvalidID);
        }
        if length > LENGTH_MAX {
            return Err(Error::InvalidLength);
        }

        Ok(Self { id, length })
    }
/// Create a FrameHeader from raw field values
Create a FrameHeader from raw field values
Create a FrameHeader from raw field values
fn from_raw(id: u16, length: u16) -> Result<Self, Error> {
        if id > ID_MAX {
            return Err(Error::InvalidID);
        }
        if length > LENGTH_MAX {
            return Err(Error::InvalidLength);
        }
        Ok(Self { id, length })
    }
fn from_raw ( id : u16 , length : u16 ) -> Result < Self , Error > { if id > ID_MAX { return Err ( Error :: InvalidID ) ; } if length > LENGTH_MAX { return Err ( Error :: InvalidLength ) ; } Ok ( Self { id , length } ) }
Create a FrameHeader from raw field values
Create a FrameHeader from raw field values
id
u16
length
u16
id
u16
length
u16