Enum zbus::MethodFlags
source · #[repr(u8)]pub enum MethodFlags {
NoReplyExpected = 1,
NoAutoStart = 2,
AllowInteractiveAuth = 4,
}
Expand description
Flags to use with Proxy::call_with_flags
.
Variants§
NoReplyExpected = 1
No response is expected from this method call, regardless of whether the
signature for the interface method indicates a reply type. When passed,
call_with_flags
will return Ok(None)
immediately after successfully
sending the method call.
Errors encountered while making the call will still be returned as
an Err
variant, but any errors that are triggered by the receiver’s
handling of the call will not be delivered.
NoAutoStart = 2
When set on a call whose destination is a message bus, this flag will instruct the bus not to launch a service to handle the call if no application on the bus owns the requested name.
This flag is ignored when using a peer-to-peer connection.
AllowInteractiveAuth = 4
Indicates to the receiver that this client is prepared to wait for interactive authorization, which might take a considerable time to complete. For example, the receiver may query the user for confirmation via polkit or a similar framework.
Trait Implementations§
source§impl BitAnd for MethodFlags
impl BitAnd for MethodFlags
source§impl BitFlag for MethodFlags
impl BitFlag for MethodFlags
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 MethodFlags
impl BitOr for MethodFlags
source§impl BitXor for MethodFlags
impl BitXor for MethodFlags
source§impl Clone for MethodFlags
impl Clone for MethodFlags
source§fn clone(&self) -> MethodFlags
fn clone(&self) -> MethodFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MethodFlags
impl Debug for MethodFlags
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 MethodFlags
impl Not for MethodFlags
source§impl PartialEq for MethodFlags
impl PartialEq for MethodFlags
source§impl RawBitFlags for MethodFlags
impl RawBitFlags for MethodFlags
source§const EMPTY: Self::Numeric = {transmute(0x00): <proxy::MethodFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00): <proxy::MethodFlags as enumflags2::_internal::RawBitFlags>::Numeric}
source§const DEFAULT: Self::Numeric = {transmute(0x00): <proxy::MethodFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00): <proxy::MethodFlags as enumflags2::_internal::RawBitFlags>::Numeric}
source§const ALL_BITS: Self::Numeric = {transmute(0x07): <proxy::MethodFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x07): <proxy::MethodFlags as enumflags2::_internal::RawBitFlags>::Numeric}
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<MethodFlags>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<MethodFlags>"
impl Copy for MethodFlags
impl Eq for MethodFlags
impl StructuralPartialEq for MethodFlags
Auto Trait Implementations§
impl Freeze for MethodFlags
impl RefUnwindSafe for MethodFlags
impl Send for MethodFlags
impl Sync for MethodFlags
impl Unpin for MethodFlags
impl UnwindSafe for MethodFlags
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
)