Trait dbus::nonblock::NonblockReply
source · [−]pub trait NonblockReply {
type F;
fn send_with_reply(&self, msg: Message, f: Self::F) -> Result<Token, ()>;
fn cancel_reply(&self, id: Token) -> Option<Self::F>;
fn make_f<G: FnOnce(Message, &Self) + Send + 'static>(g: G) -> Self::F
where
Self: Sized;
fn set_timeout_maker(
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>;
fn timeout_maker(&self) -> Option<TimeoutMakerCb>;
fn set_waker(&mut self, f: Option<WakerCb>) -> Option<WakerCb>;
}
Expand description
Internal helper trait for async method replies.
Required Associated Types
Required Methods
Sends a message and calls the callback when a reply is received.
sourcefn cancel_reply(&self, id: Token) -> Option<Self::F>
fn cancel_reply(&self, id: Token) -> Option<Self::F>
Cancels a pending reply.
Internal helper function that creates a callback.
sourcefn set_timeout_maker(
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>
fn set_timeout_maker(
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>
Set the internal timeout maker
sourcefn timeout_maker(&self) -> Option<TimeoutMakerCb>
fn timeout_maker(&self) -> Option<TimeoutMakerCb>
Get the internal timeout maker