pub struct App<'a> { /* private fields */ }Implementations§
source§impl<'a> App<'a>
impl<'a> App<'a>
pub fn new( parent: &'static str, storage: UserData<'a>, etc_content: Vec<&'a str>, ) -> Result<Self>
pub fn get_sources(&self) -> &HashSet<H<'_>>
pub fn add_allow(&mut self, args: &'a [&'a str])
pub fn add_block(&mut self, args: &'a [&'a str])
pub fn add_redirect(&mut self, args: &'a [(&'a str, &'a str)])
pub fn add_etc_host<T: IntoIterator<Item = H<'a>>>(&mut self, iter: T)
pub fn add_sources(&mut self, args: &'a [&'a str])
pub fn rm_allow(&mut self, args: &'a [&'a str])
pub fn rm_block(&mut self, args: &'a [&'a str])
pub fn rm_redirect(&mut self, args: &'a [&'a str])
pub fn rm_sources(&mut self, args: &'a [&'a str])
pub fn clear_host(&mut self)
pub fn export_allow<T: AsRef<Path>>(&mut self, path: T)
pub fn export_block<T: AsRef<Path>>(&mut self, path: T)
pub fn export_redirect<T: AsRef<Path>>(&mut self, path: T)
pub fn export_sources<T: AsRef<Path>>(&mut self, path: T)
pub fn restore_etc_host_file<P: AsRef<Path>>(path: P) -> Result<()>
pub fn save(&mut self)
Auto Trait Implementations§
impl<'a> Freeze for App<'a>
impl<'a> RefUnwindSafe for App<'a>
impl<'a> Send for App<'a>
impl<'a> Sync for App<'a>
impl<'a> Unpin for App<'a>
impl<'a> UnwindSafe for App<'a>
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