pub trait StreamAndControlHandle<RS, Item>: Stream<Item = Item> {
// Required method
fn control_handle(&self) -> WeakControlHandle<RS>;
}
Expand description
Types that implement StreamAndControlHandle
can stream out FIDL request
messages and vend out weak control handles which lets you manage the connection
and send events.
Required Methods§
Sourcefn control_handle(&self) -> WeakControlHandle<RS>
fn control_handle(&self) -> WeakControlHandle<RS>
Obtain a weak control handle. Different from [RequestStream::control_handle
],
the weak control handle will not prevent unbinding. You may hold on to the
weak control handle and the request stream can still complete when stalled.