Trait dbus::nonblock::NonblockReply [−][src]
Internal helper trait for async method replies.
Associated Types
Loading content...Required methods
fn send_with_reply(&self, msg: Message, f: Self::F) -> Result<Token, ()>
[src]
Sends a message and calls the callback when a reply is received.
fn cancel_reply(&self, id: Token) -> Option<Self::F>
[src]
Cancels a pending reply.
fn make_f<G: FnOnce(Message, &Self) + Send + 'static>(g: G) -> Self::F where
Self: Sized,
[src]
Self: Sized,
Internal helper function that creates a callback.
fn set_timeout_maker(
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>
[src]
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>
Set the internal timeout maker
fn timeout_maker(&self) -> Option<TimeoutMakerCb>
[src]
Get the internal timeout maker
fn set_waker(&mut self, f: Option<WakerCb>) -> Option<WakerCb>
[src]
Set the wakeup call
Implementors
impl NonblockReply for Connection
[src]
type F = Box<dyn FnOnce(Message, &Connection) + Send + 'static>
fn send_with_reply(&self, msg: Message, f: Self::F) -> Result<Token, ()>
[src]
fn cancel_reply(&self, id: Token) -> Option<Self::F>
[src]
fn make_f<G: FnOnce(Message, &Self) + Send + 'static>(g: G) -> Self::F
[src]
fn timeout_maker(&self) -> Option<TimeoutMakerCb>
[src]
fn set_timeout_maker(
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>
[src]
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>
fn set_waker(&mut self, f: Option<WakerCb>) -> Option<WakerCb>
[src]
impl NonblockReply for LocalConnection
[src]
type F = Box<dyn FnOnce(Message, &LocalConnection) + 'static>
fn send_with_reply(&self, msg: Message, f: Self::F) -> Result<Token, ()>
[src]
fn cancel_reply(&self, id: Token) -> Option<Self::F>
[src]
fn make_f<G: FnOnce(Message, &Self) + Send + 'static>(g: G) -> Self::F
[src]
fn timeout_maker(&self) -> Option<TimeoutMakerCb>
[src]
fn set_timeout_maker(
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>
[src]
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>
fn set_waker(&mut self, f: Option<WakerCb>) -> Option<WakerCb>
[src]
impl NonblockReply for SyncConnection
[src]
type F = Box<dyn FnOnce(Message, &SyncConnection) + Send + 'static>
fn send_with_reply(&self, msg: Message, f: Self::F) -> Result<Token, ()>
[src]
fn cancel_reply(&self, id: Token) -> Option<Self::F>
[src]
fn make_f<G: FnOnce(Message, &Self) + Send + 'static>(g: G) -> Self::F
[src]
fn timeout_maker(&self) -> Option<TimeoutMakerCb>
[src]
fn set_timeout_maker(
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>
[src]
&mut self,
f: Option<TimeoutMakerCb>
) -> Option<TimeoutMakerCb>