Enum zbus::MessageFlags
source · [−]#[repr(u8)]
pub enum MessageFlags {
NoReplyExpected,
NoAutoStart,
AllowInteractiveAuth,
}
Expand description
Pre-defined flags that can be passed in Message header.
Variants
NoReplyExpected
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
The bus must not launch an owner for the destination name in response to this message.
AllowInteractiveAuth
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
sourceimpl BitAnd<MessageFlags> for MessageFlags
impl BitAnd<MessageFlags> for MessageFlags
type Output = BitFlags<MessageFlags, <MessageFlags as RawBitFlags>::Numeric>
type Output = BitFlags<MessageFlags, <MessageFlags as RawBitFlags>::Numeric>
The resulting type after applying the &
operator.
sourceimpl BitFlag for MessageFlags
impl BitFlag for MessageFlags
sourceimpl BitOr<MessageFlags> for MessageFlags
impl BitOr<MessageFlags> for MessageFlags
type Output = BitFlags<MessageFlags, <MessageFlags as RawBitFlags>::Numeric>
type Output = BitFlags<MessageFlags, <MessageFlags as RawBitFlags>::Numeric>
The resulting type after applying the |
operator.
sourceimpl BitXor<MessageFlags> for MessageFlags
impl BitXor<MessageFlags> for MessageFlags
type Output = BitFlags<MessageFlags, <MessageFlags as RawBitFlags>::Numeric>
type Output = BitFlags<MessageFlags, <MessageFlags as RawBitFlags>::Numeric>
The resulting type after applying the ^
operator.
sourceimpl Clone for MessageFlags
impl Clone for MessageFlags
sourcefn clone(&self) -> MessageFlags
fn clone(&self) -> MessageFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MessageFlags
impl Debug for MessageFlags
sourceimpl Not for MessageFlags
impl Not for MessageFlags
type Output = BitFlags<MessageFlags, <MessageFlags as RawBitFlags>::Numeric>
type Output = BitFlags<MessageFlags, <MessageFlags as RawBitFlags>::Numeric>
The resulting type after applying the !
operator.
sourceimpl PartialEq<MessageFlags> for MessageFlags
impl PartialEq<MessageFlags> for MessageFlags
sourceimpl RawBitFlags for MessageFlags
impl RawBitFlags for MessageFlags
sourceconst 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}
A value with no bits set.
sourceconst 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}
The value used by the Default implementation. Equivalent to EMPTY, unless customized. Read more
sourceconst 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}
A value with all flag bits set.
sourceconst BITFLAGS_TYPE_NAME: &'static str = _
const BITFLAGS_TYPE_NAME: &'static str = _
The name of the type for debug formatting purposes. Read more
sourceimpl Type for MessageFlags
impl Type for MessageFlags
impl Copy for MessageFlags
impl Eq for MessageFlags
impl StructuralEq for MessageFlags
impl StructuralPartialEq for MessageFlags
Auto Trait Implementations
impl RefUnwindSafe for MessageFlags
impl Send for MessageFlags
impl Sync for MessageFlags
impl Unpin for MessageFlags
impl UnwindSafe for MessageFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> DynamicType for T where
T: Type + ?Sized,
impl<T> DynamicType for T where
T: Type + ?Sized,
sourcefn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more