Markus Ineichen
Markus Ineichen
Because "extern C fn" can be instrumented with generics within the `from` implementation, we don't need any macros. Just some pointer casts. You can find a working example [here](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=08b915d3b8761fc24d57d8b18a6023c2 )...
I'd like to use vue-konva to create webcomponents which can easily be used in foreign code. Therefore, global imports are not an option and I have to use the following...
I would appreciate the consolication of the two. base::ZipFileReader::new() could accept a custom, (sealed) Trait, which will be implemented for Tokio-AsyncRead and Futures-AsyncRead (plus their seek-impl). When enabling the tokio-feature,...
The trait mustn't have a blanked implementation. But you're right, the two Generic-Implementations for tokio::AsyncRead and futures::AsyncRead could overlap and therefore conflict... Is this what you meant? Maybe a 'ZipFileReader::new_tokio'...
> anyone else has any suggestions Sorry for the confusion. I wasn't sure if I misinterpreted your post and just suggesting what you meant already...
There is a possibility, to implement it today, but it requires a lot of indirection: ```rust async fn spawn_blocking_non_static_fallible( mut state: &mut T, mut tmp: T, x: impl FnOnce(&mut T)...
I thought about a UnboundChannel for the blocking ThreadPool, so the only way of a panic would be a OutOfMemory error. We don't really need anything from the tokio-Runtime to...
It could be part of the implementation, but there is more to it. I don't just have a AsyncRead, but I have to create one, e.g. with piper. But now...
Such a helper would unlock using push-based libraries... AsyncZip, afaik doesn't provide a way to turn a AsyncRead into a Zipped AsyncRead... It only has the async_zip::core::ZipFileWriter::new() method which accepts...
Your example summarizes the inconvenience: Someone has to poll the writer, but tokio is not always available, so it cannot be the a spawned task... I implemented it [here](https://github.com/mineichen/pilatus/blob/5bd47bb5195014a7bc31c322d8fc13bc3f550844/pilatus-axum/src/into_response/io_stream_body.rs), so...