pub struct MethodInfo<'a, M: 'a + MethodType<D>, D: 'a + DataType> {
pub msg: &'a Message,
pub method: &'a Method<M, D>,
pub iface: &'a Interface<M, D>,
pub path: &'a ObjectPath<M, D>,
pub tree: &'a Tree<M, D>,
}
Expand description
Contains information about the incoming method call.
Fields§
§msg: &'a Message
Message
method: &'a Method<M, D>
The method to be called
iface: &'a Interface<M, D>
Interface
path: &'a ObjectPath<M, D>
Object path
tree: &'a Tree<M, D>
Tree
Implementations§
Source§impl<'a, M: 'a + MethodType<D>, D: 'a + DataType> MethodInfo<'a, M, D>
impl<'a, M: 'a + MethodType<D>, D: 'a + DataType> MethodInfo<'a, M, D>
Sourcepub fn to_prop_info(
&self,
iface: &'a Interface<M, D>,
prop: &'a Property<M, D>,
) -> PropInfo<'a, M, D>
pub fn to_prop_info( &self, iface: &'a Interface<M, D>, prop: &'a Property<M, D>, ) -> PropInfo<'a, M, D>
MethodInfo to PropInfo conversion
Trait Implementations§
Source§impl<'a, M: Clone + 'a + MethodType<D>, D: Clone + 'a + DataType> Clone for MethodInfo<'a, M, D>
impl<'a, M: Clone + 'a + MethodType<D>, D: Clone + 'a + DataType> Clone for MethodInfo<'a, M, D>
Source§fn clone(&self) -> MethodInfo<'a, M, D>
fn clone(&self) -> MethodInfo<'a, M, D>
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<'a, M: Debug + 'a + MethodType<D>, D: Debug + 'a + DataType> Debug for MethodInfo<'a, M, D>
impl<'a, M: Debug + 'a + MethodType<D>, D: Debug + 'a + DataType> Debug for MethodInfo<'a, M, D>
Source§impl<'a, M: 'a + MethodType<D>, D: 'a + DataType> Introspectable for MethodInfo<'a, M, D>
impl<'a, M: 'a + MethodType<D>, D: 'a + DataType> Introspectable for MethodInfo<'a, M, D>
impl<'a, M: Copy + 'a + MethodType<D>, D: Copy + 'a + DataType> Copy for MethodInfo<'a, M, D>
Auto Trait Implementations§
impl<'a, M, D> Freeze for MethodInfo<'a, M, D>
impl<'a, M, D> RefUnwindSafe for MethodInfo<'a, M, D>where
<D as DataType>::Method: RefUnwindSafe,
<D as DataType>::Interface: RefUnwindSafe,
<D as DataType>::ObjectPath: RefUnwindSafe,
<D as DataType>::Tree: RefUnwindSafe,
<M as MethodType<D>>::Method: RefUnwindSafe,
<D as DataType>::Signal: RefUnwindSafe,
<D as DataType>::Property: RefUnwindSafe,
<M as MethodType<D>>::GetProp: RefUnwindSafe,
<M as MethodType<D>>::SetProp: RefUnwindSafe,
impl<'a, M, D> !Send for MethodInfo<'a, M, D>
impl<'a, M, D> !Sync for MethodInfo<'a, M, D>
impl<'a, M, D> Unpin for MethodInfo<'a, M, D>
impl<'a, M, D> UnwindSafe for MethodInfo<'a, M, D>where
<D as DataType>::Method: RefUnwindSafe,
<D as DataType>::Interface: RefUnwindSafe,
<D as DataType>::ObjectPath: RefUnwindSafe,
<D as DataType>::Tree: RefUnwindSafe,
<M as MethodType<D>>::Method: RefUnwindSafe,
<D as DataType>::Signal: RefUnwindSafe,
<D as DataType>::Property: RefUnwindSafe,
<M as MethodType<D>>::GetProp: RefUnwindSafe,
<M as MethodType<D>>::SetProp: RefUnwindSafe,
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