pub struct RemoteCommandStore { /* private fields */ }
Implementations§
Source§impl RemoteCommandStore
impl RemoteCommandStore
pub fn add_remote_command( &self, device_id: &str, command: &RemoteCommand, ) -> ApiResult<bool>
pub fn add_remote_command_at( &self, device_id: &str, command: &RemoteCommand, when: Timestamp, ) -> ApiResult<bool>
pub fn remove_remote_command( &self, device_id: &str, command: &RemoteCommand, ) -> ApiResult<bool>
pub fn get_unsent_commands(&self) -> ApiResult<Vec<PendingCommand>>
pub fn set_pending_command_sent( &self, command: &PendingCommand, ) -> ApiResult<bool>
Trait Implementations§
§impl<UT> LiftRef<UT> for RemoteCommandStore
impl<UT> LiftRef<UT> for RemoteCommandStore
type LiftType = Arc<RemoteCommandStore>
§impl<UT> LowerError<UT> for RemoteCommandStore
impl<UT> LowerError<UT> for RemoteCommandStore
§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
§impl<UT> LowerReturn<UT> for RemoteCommandStore
impl<UT> LowerReturn<UT> for RemoteCommandStore
§type ReturnType = <Arc<RemoteCommandStore> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<RemoteCommandStore> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
§impl<UT> TypeId<UT> for RemoteCommandStore
impl<UT> TypeId<UT> for RemoteCommandStore
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for RemoteCommandStore
impl RefUnwindSafe for RemoteCommandStore
impl Send for RemoteCommandStore
impl Sync for RemoteCommandStore
impl Unpin for RemoteCommandStore
impl UnwindSafe for RemoteCommandStore
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more