Enum zbus::MessageFlags
source · #[repr(u8)]pub enum MessageFlags {
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 MessageType::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 BitAnd for MessageFlags
impl BitAnd for MessageFlags
source§impl BitFlag for MessageFlags
impl BitFlag for MessageFlags
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 moresource§impl BitOr for MessageFlags
impl BitOr for MessageFlags
source§impl BitXor for MessageFlags
impl BitXor for MessageFlags
source§impl Clone for MessageFlags
impl Clone for MessageFlags
source§fn clone(&self) -> MessageFlags
fn clone(&self) -> MessageFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageFlags
impl Debug for MessageFlags
source§impl From<MethodFlags> for MessageFlags
impl From<MethodFlags> for MessageFlags
source§fn from(method_flag: MethodFlags) -> Self
fn from(method_flag: MethodFlags) -> Self
source§impl Not for MessageFlags
impl Not for MessageFlags
source§impl PartialEq for MessageFlags
impl PartialEq for MessageFlags
source§impl RawBitFlags for MessageFlags
impl RawBitFlags for MessageFlags
source§const EMPTY: Self::Numeric = {transmute(0x00): <message_header::MessageFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00): <message_header::MessageFlags as enumflags2::_internal::RawBitFlags>::Numeric}
source§const DEFAULT: Self::Numeric = {transmute(0x00): <message_header::MessageFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00): <message_header::MessageFlags as enumflags2::_internal::RawBitFlags>::Numeric}
source§const ALL_BITS: Self::Numeric = {transmute(0x07): <message_header::MessageFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x07): <message_header::MessageFlags as enumflags2::_internal::RawBitFlags>::Numeric}
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<MessageFlags>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<MessageFlags>"
source§impl Type for MessageFlags
impl Type for MessageFlags
impl Copy for MessageFlags
impl Eq for MessageFlags
impl StructuralPartialEq for MessageFlags
Auto Trait Implementations§
impl Freeze for MessageFlags
impl RefUnwindSafe for MessageFlags
impl Send for MessageFlags
impl Sync for MessageFlags
impl Unpin for MessageFlags
impl UnwindSafe for MessageFlags
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)