pub struct PuppetFactoryCreateResponder { /* private fields */ }
Implementations§
Source§impl PuppetFactoryCreateResponder
impl PuppetFactoryCreateResponder
Sourcepub fn send(self, payload: PuppetFactoryCreateResponse) -> Result<(), Error>
pub fn send(self, payload: PuppetFactoryCreateResponse) -> Result<(), Error>
Sends a response to the FIDL transaction.
Sets the channel to shutdown if an error occurs.
Sourcepub fn send_no_shutdown_on_err(
self,
payload: PuppetFactoryCreateResponse,
) -> Result<(), Error>
pub fn send_no_shutdown_on_err( self, payload: PuppetFactoryCreateResponse, ) -> Result<(), Error>
Similar to “send” but does not shutdown the channel if an error occurs.
Trait Implementations§
Source§impl Debug for PuppetFactoryCreateResponder
impl Debug for PuppetFactoryCreateResponder
Source§impl Drop for PuppetFactoryCreateResponder
impl Drop for PuppetFactoryCreateResponder
Set the the channel to be shutdown (see PuppetFactoryControlHandle::shutdown
)
if the responder is dropped without sending a response, so that the client
doesn’t hang. To prevent this behavior, call drop_without_shutdown
.
Source§impl Responder for PuppetFactoryCreateResponder
impl Responder for PuppetFactoryCreateResponder
Source§type ControlHandle = PuppetFactoryControlHandle
type ControlHandle = PuppetFactoryControlHandle
The control handle for this protocol.
Source§fn control_handle(&self) -> &PuppetFactoryControlHandle
fn control_handle(&self) -> &PuppetFactoryControlHandle
Returns the
ControlHandle
for this protocol.Source§fn drop_without_shutdown(self)
fn drop_without_shutdown(self)
Drops the responder without setting the channel to shutdown. Read more
Auto Trait Implementations§
impl Freeze for PuppetFactoryCreateResponder
impl !RefUnwindSafe for PuppetFactoryCreateResponder
impl Send for PuppetFactoryCreateResponder
impl Sync for PuppetFactoryCreateResponder
impl Unpin for PuppetFactoryCreateResponder
impl !UnwindSafe for PuppetFactoryCreateResponder
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