pub struct RemoveHandle { /* private fields */ }Expand description
Remove a notification previously shown with id
Implementations§
Source§impl RemoveHandle
impl RemoveHandle
pub fn new(id: Option<String>) -> Self
pub fn id(&self) -> Option<&String>
Sourcepub fn remove(&self) -> Result<()>
pub fn remove(&self) -> Result<()>
Runs termux-notification-remove command if id present
§Errors
Returns an error if command status not success
Sourcepub fn to_command(&self) -> Option<Command>
pub fn to_command(&self) -> Option<Command>
Builds termux-notification-remove command
Trait Implementations§
Source§impl Clone for RemoveHandle
impl Clone for RemoveHandle
Source§fn clone(&self) -> RemoveHandle
fn clone(&self) -> RemoveHandle
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 moreSource§impl Debug for RemoveHandle
impl Debug for RemoveHandle
Source§impl PartialEq for RemoveHandle
impl PartialEq for RemoveHandle
impl Eq for RemoveHandle
impl StructuralPartialEq for RemoveHandle
Auto Trait Implementations§
impl Freeze for RemoveHandle
impl RefUnwindSafe for RemoveHandle
impl Send for RemoveHandle
impl Sync for RemoveHandle
impl Unpin for RemoveHandle
impl UnwindSafe for RemoveHandle
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