pub struct ContextWrapper<'a, T, C> { /* private fields */ }
Expand description
Context wrapper, to bind an API with a context.
Implementations§
Trait Implementations§
Source§impl<'a, T: Api<C>, C> ApiNoContext for ContextWrapper<'a, T, C>
impl<'a, T: Api<C>, C> ApiNoContext for ContextWrapper<'a, T, C>
fn i2c_bus_api( &self, ) -> Box<dyn Future<Item = I2cBusApiResponse, Error = ApiError> + Send>
fn i2c_bus_list( &self, ) -> Box<dyn Future<Item = I2cBusListResponse, Error = ApiError> + Send>
fn i2c_bus_read_byte( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = I2cBusReadByteResponse, Error = ApiError> + Send>
fn i2c_bus_read_bytes( &self, bus_id: i32, addr: i32, num_bytes: i32, ) -> Box<dyn Future<Item = I2cBusReadBytesResponse, Error = ApiError> + Send>
fn i2c_bus_read_reg( &self, bus_id: i32, addr: i32, reg: i32, num_bytes: i32, ) -> Box<dyn Future<Item = I2cBusReadRegResponse, Error = ApiError> + Send>
fn i2c_bus_write_byte( &self, bus_id: i32, addr: i32, value: i32, ) -> Box<dyn Future<Item = I2cBusWriteByteResponse, Error = ApiError> + Send>
fn i2c_bus_write_byte_reg( &self, bus_id: i32, addr: i32, reg: i32, value: i32, ) -> Box<dyn Future<Item = I2cBusWriteByteRegResponse, Error = ApiError> + Send>
fn i2c_bus_write_bytes( &self, bus_id: i32, addr: i32, values: Values, ) -> Box<dyn Future<Item = I2cBusWriteBytesResponse, Error = ApiError> + Send>
fn i2c_bus_write_bytes_reg( &self, bus_id: i32, addr: i32, reg: i32, values: Values, ) -> Box<dyn Future<Item = I2cBusWriteBytesRegResponse, Error = ApiError> + Send>
Source§impl<'a, T, C> Clone for ContextWrapper<'a, T, C>where
C: Clone,
impl<'a, T, C> Clone for ContextWrapper<'a, T, C>where
C: Clone,
Source§fn clone(&self) -> ContextWrapper<'a, T, C>
fn clone(&self) -> ContextWrapper<'a, T, C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, T, C> Freeze for ContextWrapper<'a, T, C>where
C: Freeze,
impl<'a, T, C> RefUnwindSafe for ContextWrapper<'a, T, C>where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, C> Send for ContextWrapper<'a, T, C>
impl<'a, T, C> Sync for ContextWrapper<'a, T, C>
impl<'a, T, C> Unpin for ContextWrapper<'a, T, C>where
C: Unpin,
impl<'a, T, C> UnwindSafe for ContextWrapper<'a, T, C>where
C: UnwindSafe,
T: RefUnwindSafe,
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