Trait detect_stall::StreamAndControlHandle

source ·
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§

source

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.

Implementors§

source§

impl<RS: RequestStream + Unpin, F: FnOnce(Option<Channel>) + Unpin> StreamAndControlHandle<RS, <RS as Stream>::Item> for StallableRequestStream<RS, F>