Struct termux_notification::remove_handle::RemoveHandle
source · 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 copy 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
source§fn eq(&self, other: &RemoveHandle) -> bool
fn eq(&self, other: &RemoveHandle) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for RemoveHandle
impl StructuralPartialEq for RemoveHandle
Auto Trait Implementations§
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