Struct
StreamResponder
pub struct StreamResponder { /* private fields */ }Responder for sending data from a browser-side stream handler to the renderer.
A responder the runtime hands a handler is bound to its stream and its
document. Once any clone has sent the stream’s end or error, or the
stream is closed or its document has ended, every send returns Err.
Methods
#pub fn send_data(&self, data: &[u8]) -> Result<(), IpcError>
Sends a data chunk to the page’s onData.
Errors
Returns Err and sends nothing when the stream has ended or failed,
or the document that opened it has gone (its frame navigated or
closed).
Trait implementations
impl Clone for StreamResponder