Skip to main content

envelope

Function envelope 

Source
pub fn envelope(
    record_type: u8,
    payload: Value,
    subject: Option<Vec<u8>>,
    ttl_ms: u64,
) -> Result<Record, RecordError>
Expand description

An unsigned record of a domain type, 0x20 to 0xFF, with subject, living ttl_ms, or 48 hours when 0. An empty subject would name a slot apart from no subject, so it is refused.