Struct dbus::ffidisp::MessageReply
source · [−]pub struct MessageReply<F>(_, _);
Expand description
The struct returned from Connection::send_and_reply
.
It implements the MsgHandler
trait so you can use Connection::add_handler
.
Trait Implementations
sourceimpl<'a, F: FnOnce(Result<&Message, Error>) + 'a> MsgHandler for MessageReply<F>
impl<'a, F: FnOnce(Result<&Message, Error>) + 'a> MsgHandler for MessageReply<F>
sourcefn handler_type(&self) -> MsgHandlerType
fn handler_type(&self) -> MsgHandlerType
Type of messages for which the handler will be called Read more
sourcefn handle_msg(&mut self, msg: &Message) -> Option<MsgHandlerResult>
fn handle_msg(&mut self, msg: &Message) -> Option<MsgHandlerResult>
Function to be called if the message matches the MsgHandlerType
Auto Trait Implementations
impl<F> RefUnwindSafe for MessageReply<F>where
F: RefUnwindSafe,
impl<F> Send for MessageReply<F>where
F: Send,
impl<F> Sync for MessageReply<F>where
F: Sync,
impl<F> Unpin for MessageReply<F>where
F: Unpin,
impl<F> UnwindSafe for MessageReply<F>where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more