"hey, i want to redirect i2c::I2c..." <- > <@holo:matrix.org> hey, i want to redirect i2c::I2c::new_async handler to my struct. What should i use as type? > > ``` > ... > pub fn new(addr: u16, i2c: I2c<'d, T, Async>) -> Self { > Self { > addr, > i2c, > co2: 0, > crc_co2: 0, > temperature: 0, > crc_temperature: 0, > humidity: 0, > crc_humidity: 0, > } > } > ... > ``` 1. You are missing the lifetime on the function 2. to see the type of I2C, a quick hack if you are using something like VSCode is to see the type the linter gives you and copy it to the function