Skip to main content

capability_bits

Function capability_bits 

Source
pub fn capability_bits(names: &[String]) -> Result<u32>
Expand description

Encode capability names into a bitmask, rejecting anything unrecognised.

Rejecting is deliberate. A silently-ignored capability name would put an advertisement on the wire that claims less than the operator’s prompt asked for, and nothing would say so.