Enum zbus::MessageFieldCode
source · #[repr(u8)]pub enum MessageFieldCode {
Invalid = 0,
Path = 1,
Interface = 2,
Member = 3,
ErrorName = 4,
ReplySerial = 5,
Destination = 6,
Sender = 7,
Signature = 8,
UnixFDs = 9,
}
Expand description
The message field code.
Every MessageField
has an associated code. This is mostly an internal D-Bus protocol detail
that you would not need to ever care about when using the high-level API. When using the
low-level API, this is how you can retrieve a specific field from MessageFields
.
Variants§
Invalid = 0
Code for MessageField::Invalid
Path = 1
Code for MessageField::Path
Interface = 2
Code for MessageField::Interface
Member = 3
Code for MessageField::Member
ErrorName = 4
Code for MessageField::ErrorName
ReplySerial = 5
Code for MessageField::ReplySerial
Destination = 6
Code for MessageField::Destinatione
Sender = 7
Code for MessageField::Sender
Signature = 8
Code for MessageField::Signature
UnixFDs = 9
Code for MessageField::UnixFDs
Trait Implementations§
source§impl Clone for MessageFieldCode
impl Clone for MessageFieldCode
source§fn clone(&self) -> MessageFieldCode
fn clone(&self) -> MessageFieldCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageFieldCode
impl Debug for MessageFieldCode
source§impl<'de> Deserialize<'de> for MessageFieldCode
impl<'de> Deserialize<'de> for MessageFieldCode
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<u8> for MessageFieldCode
impl From<u8> for MessageFieldCode
source§fn from(val: u8) -> MessageFieldCode
fn from(val: u8) -> MessageFieldCode
Converts to this type from the input type.
source§impl PartialEq for MessageFieldCode
impl PartialEq for MessageFieldCode
source§impl Serialize for MessageFieldCode
impl Serialize for MessageFieldCode
source§impl Type for MessageFieldCode
impl Type for MessageFieldCode
impl Copy for MessageFieldCode
impl Eq for MessageFieldCode
impl StructuralPartialEq for MessageFieldCode
Auto Trait Implementations§
impl Freeze for MessageFieldCode
impl RefUnwindSafe for MessageFieldCode
impl Send for MessageFieldCode
impl Sync for MessageFieldCode
impl Unpin for MessageFieldCode
impl UnwindSafe for MessageFieldCode
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more