pub struct ServiceExtensionReply(/* private fields */);Expand description
The answer to one call, given once, as AppExitReply is. Dropped
unanswered, it answers ServiceExtensionError::Failed, so a client is never left waiting.
Implementations§
Source§impl ServiceExtensionReply
impl ServiceExtensionReply
Sourcepub fn new(
send: impl FnOnce(ServiceExtensionResult) + 'static,
) -> ServiceExtensionReply
pub fn new( send: impl FnOnce(ServiceExtensionResult) + 'static, ) -> ServiceExtensionReply
A reply that hands its answer to send. The answer is given inside a call into the
client, so send may only post it to the host’s own loop or thread, never call the
client.
pub fn answer(self, result: ServiceExtensionResult)
Trait Implementations§
Source§impl Debug for ServiceExtensionReply
impl Debug for ServiceExtensionReply
Source§impl Drop for ServiceExtensionReply
impl Drop for ServiceExtensionReply
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceExtensionReply
impl !Send for ServiceExtensionReply
impl !Sync for ServiceExtensionReply
impl !UnwindSafe for ServiceExtensionReply
impl Forget for ServiceExtensionReply
impl Freeze for ServiceExtensionReplywhere
*const dyn FnOnce(Result<Value, ServiceExtensionError>) is !null: Freeze,
PhantomData<dyn FnOnce(Result<Value, ServiceExtensionError>)>: Freeze,
impl Move for ServiceExtensionReply
impl Unpin for ServiceExtensionReply
impl UnsafeUnpin for ServiceExtensionReplywhere
*const dyn FnOnce(Result<Value, ServiceExtensionError>) is !null: UnsafeUnpin,
PhantomData<dyn FnOnce(Result<Value, ServiceExtensionError>)>: UnsafeUnpin,
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