pub struct Handle { /* private fields */ }
Implementations§
Source§impl Handle
impl Handle
pub fn new(url: &'static str) -> Handle
pub fn i2c_bus_read_byte( &self, bus_id: BusId, addr: Addr, ) -> Box<dyn Future<Item = I2cBusReadByteResponse, Error = ApiError> + Send>
pub fn i2c_bus_read_bytes( &self, bus_id: BusId, addr: Addr, num_bytes: NumBytes, ) -> Box<dyn Future<Item = I2cBusReadBytesResponse, Error = ApiError> + Send>
pub fn i2c_bus_read_reg( &self, bus_id: BusId, addr: Addr, reg: Reg, num_bytes: NumBytes, ) -> Box<dyn Future<Item = I2cBusReadRegResponse, Error = ApiError> + Send>
pub fn i2c_bus_write_byte( &self, bus_id: BusId, addr: Addr, value: Value, ) -> Box<dyn Future<Item = I2cBusWriteByteResponse, Error = ApiError> + Send>
pub fn i2c_bus_write_byte_reg( &self, bus_id: BusId, addr: Addr, reg: Reg, value: Value, ) -> Box<dyn Future<Item = I2cBusWriteByteRegResponse, Error = ApiError> + Send>
pub fn i2c_bus_write_bytes( &self, bus_id: BusId, addr: Addr, values: Values, ) -> Box<dyn Future<Item = I2cBusWriteBytesResponse, Error = ApiError> + Send>
pub fn i2c_bus_write_bytes_reg( &self, bus_id: BusId, addr: Addr, reg: Reg, values: Values, ) -> Box<dyn Future<Item = I2cBusWriteBytesRegResponse, Error = ApiError> + Send>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handle
impl !RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl !UnwindSafe for Handle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more