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>
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