pub trait ApiNoContext {
Show 39 methods
// Required methods
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>;
}
Expand description
API without a Context