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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to