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 clear_error( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = ClearErrorResponse, Error = ApiError> + Send>
fn get_addr_enabled( &self, bus_id: i32, addr: i32, num: i32, ) -> Box<dyn Future<Item = GetAddrEnabledResponse, Error = ApiError> + Send>
fn get_addr_info( &self, bus_id: i32, addr: i32, num: i32, ) -> Box<dyn Future<Item = GetAddrInfoResponse, Error = ApiError> + Send>
fn get_addr_value( &self, bus_id: i32, addr: i32, num: i32, ) -> Box<dyn Future<Item = GetAddrValueResponse, Error = ApiError> + Send>
fn get_api( &self, ) -> Box<dyn Future<Item = GetApiResponse, Error = ApiError> + Send>
fn get_config( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetConfigResponse, Error = ApiError> + Send>
fn get_current( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetCurrentResponse, Error = ApiError> + Send>
fn get_error( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetErrorResponse, Error = ApiError> + Send>
fn get_errors( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetErrorsResponse, Error = ApiError> + Send>
fn get_freq( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetFreqResponse, Error = ApiError> + Send>
fn get_group( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetGroupResponse, Error = ApiError> + Send>
fn get_led_current( &self, bus_id: i32, addr: i32, led: i32, ) -> Box<dyn Future<Item = GetLedCurrentResponse, Error = ApiError> + Send>
fn get_led_error( &self, bus_id: i32, addr: i32, led: i32, ) -> Box<dyn Future<Item = GetLedErrorResponse, Error = ApiError> + Send>
fn get_led_info( &self, bus_id: i32, addr: i32, led: i32, ) -> Box<dyn Future<Item = GetLedInfoResponse, Error = ApiError> + Send>
fn get_led_info_all( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetLedInfoAllResponse, Error = ApiError> + Send>
fn get_led_pwm( &self, bus_id: i32, addr: i32, led: i32, ) -> Box<dyn Future<Item = GetLedPwmResponse, Error = ApiError> + Send>
fn get_led_state( &self, bus_id: i32, addr: i32, led: i32, ) -> Box<dyn Future<Item = GetLedStateResponse, Error = ApiError> + Send>
fn get_offset( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetOffsetResponse, Error = ApiError> + Send>
fn get_output_change( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetOutputChangeResponse, Error = ApiError> + Send>
fn get_over_temp( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetOverTempResponse, Error = ApiError> + Send>
fn get_pwm( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetPwmResponse, Error = ApiError> + Send>
fn get_sleep( &self, bus_id: i32, addr: i32, ) -> Box<dyn Future<Item = GetSleepResponse, Error = ApiError> + Send>
fn reset( &self, bus_id: i32, ) -> Box<dyn Future<Item = ResetResponse, Error = ApiError> + Send>
fn set_addr_enabled( &self, bus_id: i32, addr: i32, num: i32, enabled: bool, ) -> Box<dyn Future<Item = SetAddrEnabledResponse, Error = ApiError> + Send>
fn set_addr_value( &self, bus_id: i32, addr: i32, num: i32, addr_val: i32, ) -> Box<dyn Future<Item = SetAddrValueResponse, Error = ApiError> + Send>
fn set_config( &self, bus_id: i32, addr: i32, config: Config, ) -> Box<dyn Future<Item = SetConfigResponse, Error = ApiError> + Send>
fn set_current( &self, bus_id: i32, addr: i32, current: i32, ) -> Box<dyn Future<Item = SetCurrentResponse, Error = ApiError> + Send>
fn set_freq( &self, bus_id: i32, addr: i32, freq: i32, ) -> Box<dyn Future<Item = SetFreqResponse, Error = ApiError> + Send>
fn set_group( &self, bus_id: i32, addr: i32, group: Group, ) -> Box<dyn Future<Item = SetGroupResponse, Error = ApiError> + Send>
fn set_led_current( &self, bus_id: i32, addr: i32, led: i32, current: i32, ) -> Box<dyn Future<Item = SetLedCurrentResponse, Error = ApiError> + Send>
fn set_led_error( &self, bus_id: i32, addr: i32, led: i32, error: LedError, ) -> Box<dyn Future<Item = SetLedErrorResponse, Error = ApiError> + Send>
fn set_led_info( &self, bus_id: i32, addr: i32, led: i32, led_info: LedInfo, ) -> Box<dyn Future<Item = SetLedInfoResponse, Error = ApiError> + Send>
fn set_led_info_all( &self, bus_id: i32, addr: i32, led_info_array: LedInfoArray, ) -> Box<dyn Future<Item = SetLedInfoAllResponse, Error = ApiError> + Send>
fn set_led_pwm( &self, bus_id: i32, addr: i32, led: i32, pwm: i32, ) -> Box<dyn Future<Item = SetLedPwmResponse, Error = ApiError> + Send>
fn set_led_state( &self, bus_id: i32, addr: i32, led: i32, state: LedState, ) -> Box<dyn Future<Item = SetLedStateResponse, Error = ApiError> + Send>
fn set_offset( &self, bus_id: i32, addr: i32, offset: i32, ) -> Box<dyn Future<Item = SetOffsetResponse, Error = ApiError> + Send>
fn set_output_change( &self, bus_id: i32, addr: i32, output_change: OutputChange, ) -> Box<dyn Future<Item = SetOutputChangeResponse, Error = ApiError> + Send>
fn set_pwm( &self, bus_id: i32, addr: i32, pwm: i32, ) -> Box<dyn Future<Item = SetPwmResponse, Error = ApiError> + Send>
fn set_sleep( &self, bus_id: i32, addr: i32, sleep: bool, ) -> Box<dyn Future<Item = SetSleepResponse, 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 duplicate 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