pub struct NotificationsClient<'a, R: ReadWrite> {
pub channel: Channel<'a, R>,
}Fields§
§channel: Channel<'a, R>The underlying channel used for communication
Implementations§
Source§impl<'a, R: ReadWrite> NotificationsClient<'a, R>
impl<'a, R: ReadWrite> NotificationsClient<'a, R>
Sourcepub async fn new(
client: &'a mut RemoteServerClient<R>,
) -> Result<Self, IdeviceError>
pub async fn new( client: &'a mut RemoteServerClient<R>, ) -> Result<Self, IdeviceError>
Sourcepub async fn start_notifications(&mut self) -> Result<(), IdeviceError>
pub async fn start_notifications(&mut self) -> Result<(), IdeviceError>
set the applicaitons and memory notifications enabled
Sourcepub async fn get_notification(
&mut self,
) -> Result<NotificationInfo, IdeviceError>
pub async fn get_notification( &mut self, ) -> Result<NotificationInfo, IdeviceError>
Reads the next notification from the service
Sourcepub async fn stop_notifications(&mut self) -> Result<(), IdeviceError>
pub async fn stop_notifications(&mut self) -> Result<(), IdeviceError>
set the applicaitons and memory notifications disable
Trait Implementations§
Auto Trait Implementations§
impl<'a, R> !RefUnwindSafe for NotificationsClient<'a, R>
impl<'a, R> !UnwindSafe for NotificationsClient<'a, R>
impl<'a, R> Freeze for NotificationsClient<'a, R>
impl<'a, R> Send for NotificationsClient<'a, R>
impl<'a, R> Sync for NotificationsClient<'a, R>
impl<'a, R> Unpin for NotificationsClient<'a, R>
impl<'a, R> UnsafeUnpin for NotificationsClient<'a, R>
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