pub(crate) struct QuickFields {
path: FieldPos,
interface: FieldPos,
member: FieldPos,
error_name: FieldPos,
reply_serial: Option<NonZeroU32>,
destination: FieldPos,
sender: FieldPos,
signature: Signature,
unix_fds: Option<u32>,
}Expand description
A cache of the Message header fields.
Fields§
§path: FieldPos§interface: FieldPos§member: FieldPos§error_name: FieldPos§reply_serial: Option<NonZeroU32>§destination: FieldPos§sender: FieldPos§signature: Signature§unix_fds: Option<u32>Implementations§
Source§impl QuickFields
impl QuickFields
pub fn new(buf: &[u8], header: &Header<'_>) -> Self
pub fn path<'m>(&self, msg: &'m Message) -> Option<ObjectPath<'m>>
pub fn interface<'m>(&self, msg: &'m Message) -> Option<InterfaceName<'m>>
pub fn member<'m>(&self, msg: &'m Message) -> Option<MemberName<'m>>
pub fn error_name<'m>(&self, msg: &'m Message) -> Option<ErrorName<'m>>
pub fn reply_serial(&self) -> Option<NonZeroU32>
pub fn destination<'m>(&self, msg: &'m Message) -> Option<BusName<'m>>
pub fn sender<'m>(&self, msg: &'m Message) -> Option<UniqueName<'m>>
pub fn signature(&self) -> &Signature
pub fn unix_fds(&self) -> Option<u32>
Trait Implementations§
Source§impl Clone for QuickFields
impl Clone for QuickFields
Source§fn clone(&self) -> QuickFields
fn clone(&self) -> QuickFields
Returns a duplicate 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 QuickFields
impl Debug for QuickFields
Source§impl Default for QuickFields
impl Default for QuickFields
Source§fn default() -> QuickFields
fn default() -> QuickFields
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QuickFields
impl RefUnwindSafe for QuickFields
impl Send for QuickFields
impl Sync for QuickFields
impl Unpin for QuickFields
impl UnwindSafe for QuickFields
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