Skip to main content

reject_retired

Function reject_retired 

Source
fn reject_retired<const N: usize>(
    method: &str,
    fields: [(&str, bool); N],
) -> Result<(), Error>
Expand description

Fail a request which sets one of the retired fields, which an older client may send, named like they were, see the schema. Ignoring one would change what the runtime does, like its root through globalArgs or the descriptors it inherits through additionalFds, or the journal entries of a container through the tag of a log driver. Empty ones, which the older clients send by default, pass. A client since v1.1.0 checks the feature of the sdnotifySocket before it sends one.