#[repr(u8)]pub enum Flags {
NoReplyExpected = 1,
NoAutoStart = 2,
AllowInteractiveAuth = 4,
}
Expand description
Pre-defined flags that can be passed in Message header.
Variants§
NoReplyExpected = 1
This message does not expect method return replies or error replies, even if it is of a type that can have a reply; the reply should be omitted.
Note that Type::MethodCall
is the only message type currently defined in the
specification that can expect a reply, so the presence or absence of this flag in the other
three message types that are currently documented is meaningless: replies to those message
types should not be sent, whether this flag is present or not.
NoAutoStart = 2
The bus must not launch an owner for the destination name in response to this message.
AllowInteractiveAuth = 4
This flag may be set on a method call message to inform the receiving side that the caller is prepared to wait for interactive authorization, which might take a considerable time to complete. For instance, if this flag is set, it would be appropriate to query the user for passwords or confirmation via Polkit or a similar framework.
Trait Implementations§
Source§impl BitFlag for Flags
impl BitFlag for Flags
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
BitFlags
with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
BitFlags
if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
BitFlags
from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
BitFlags
unsafely, without checking if the bits form
a valid bit pattern for the type. Read more