MCPcopy Create free account
hub / github.com/bjoernQ/bleps / read

Method read

example/src/main.rs:269–274  ·  view source on GitHub ↗
(&mut self, buf: &mut [u8])

Source from the content-addressed store, hash-verified

267 T: Read + Write,
268{
269 fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> {
270 match self.connection.read(buf) {
271 Ok(len) => Ok(len),
272 Err(_) => Err(BleConnectorError::Unknown),
273 }
274 }
275}
276
277impl<'a, T> Write for BleConnector<'a, T>

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected