pub(crate) fn reject_maybe(signature: &Signature) -> Result<()>Expand description
Reject a signature that carries a GVariant maybe type before it reaches the D-Bus codec.
The maybe type has no D-Bus wire representation, so a signature containing one (whether given
statically or read from a variant on the wire) is invalid input rather than an internal
invariant. It becomes reachable when zvariant_utils/gvariant is enabled — including
transitively via a co-located zgvariant — so this must return an error, not panic.