You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "dqhl76 (via GitHub)" <gi...@apache.org> on 2023/08/02 13:09:05 UTC
[GitHub] [incubator-opendal] dqhl76 commented on issue #2617: feat: Add AsyncBacktraceLayer to allow users dump this execution tree at runtime
dqhl76 commented on issue #2617:
URL: https://github.com/apache/incubator-opendal/issues/2617#issuecomment-1662184240
It seems we cannot use `async-backtrace` to create a new layer.
`#[async_backtrace::framed]` will change the `fn read` 's signature.
```rust
impl<A: Accessor> LayeredAccessor for AsyncBacktraceAccessor<A> {
...
#[async_backtrace::framed]
async fn read(&self, path: &str, args: OpRead) -> Result<(RpRead, Self::Reader)> {
self.inner.read(path, args).await
}
...
}
```
The example code below will give an error `Not all trait items implemented, missing: read [E0046]`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org