Skip to main content

parse_dtls_record_packet

Function parse_dtls_record_packet 

Source
pub fn parse_dtls_record_packet(
    input: &[u8],
) -> Result<(DtlsRecordHeader, Vec<u8>)>
Expand description

Parses a full DTLS record packet and validates payload length match.

§Arguments

  • inputinput: &[u8].

§Returns

On success, the Ok payload described by the return type; see the function body for the concrete value.

§Errors

Returns noxtls_core::Error when inputs or state invalidate the operation; see the function body for specific error construction sites.

§Panics

This function does not panic.