Enum zbus::MethodFlags
source · #[repr(u8)]
pub enum MethodFlags {
NoReplyExpected,
NoAutoStart,
AllowInteractiveAuth,
}
Expand description
Flags to use with Proxy::call_with_flags
.
Variants§
NoReplyExpected
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
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
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<MethodFlags> for MethodFlags
impl BitAnd<MethodFlags> for MethodFlags
§type Output = BitFlags<MethodFlags, <MethodFlags as RawBitFlags>::Numeric>
type Output = BitFlags<MethodFlags, <MethodFlags as RawBitFlags>::Numeric>
&
operator.source§impl BitFlag for MethodFlags
impl BitFlag for MethodFlags
source§impl BitOr<MethodFlags> for MethodFlags
impl BitOr<MethodFlags> for MethodFlags
§type Output = BitFlags<MethodFlags, <MethodFlags as RawBitFlags>::Numeric>
type Output = BitFlags<MethodFlags, <MethodFlags as RawBitFlags>::Numeric>
|
operator.source§impl BitXor<MethodFlags> for MethodFlags
impl BitXor<MethodFlags> for MethodFlags
§type Output = BitFlags<MethodFlags, <MethodFlags as RawBitFlags>::Numeric>
type Output = BitFlags<MethodFlags, <MethodFlags as RawBitFlags>::Numeric>
^
operator.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
§type Output = BitFlags<MethodFlags, <MethodFlags as RawBitFlags>::Numeric>
type Output = BitFlags<MethodFlags, <MethodFlags as RawBitFlags>::Numeric>
!
operator.source§impl PartialEq<MethodFlags> for MethodFlags
impl PartialEq<MethodFlags> for MethodFlags
source§fn eq(&self, other: &MethodFlags) -> bool
fn eq(&self, other: &MethodFlags) -> bool
self
and other
values to be equal, and is used
by ==
.