Skip to main content

payload_permission_of

Function payload_permission_of 

Source
fn payload_permission_of(status: ObjectStatus) -> PayloadPermission
Expand description

The payload permission draft-18 Section 11.2.1.1 gives status.

Normal is the one status that permits a payload; every other assigned status forbids one. Kept as a function of ObjectStatus rather than of the raw code so that a status the draft does not assign cannot reach it — such a code has no permission, because the draft states no rule for a value it never assigned.