Struct notmuch::Database
[−]
[src]
pub struct Database(_);
Methods
impl Database
[src]
pub fn create<P: AsRef<Path>>(path: &P) -> Result<Self, Error>
[src]
pub fn open<P: AsRef<Path>>(path: &P, mode: DatabaseMode) -> Result<Self, Error>
[src]
pub fn close(self) -> Result<(), Error>
[src]
pub fn compact<P: AsRef<Path>, F: FnMut(&str)>(
path: &P,
backup_path: Option<&P>
) -> Result<(), Error>
[src]
path: &P,
backup_path: Option<&P>
) -> Result<(), Error>
pub fn compact_with_status<P: AsRef<Path>, F: FnMut(&str)>(
path: &P,
backup_path: Option<&P>,
status: F
) -> Result<(), Error>
[src]
path: &P,
backup_path: Option<&P>,
status: F
) -> Result<(), Error>
pub fn path(&self) -> &Path
[src]
pub fn version(&self) -> Version
[src]
pub fn revision(&self) -> Revision
[src]
pub fn needs_upgrade(&self) -> bool
[src]
pub fn upgrade<F: FnMut(f64)>(&mut self) -> Result<(), Error>
[src]
pub fn upgrade_with_status<F: FnMut(f64)>(
&mut self,
status: F
) -> Result<(), Error>
[src]
&mut self,
status: F
) -> Result<(), Error>
pub fn directory<P: AsRef<Path>>(
&self,
path: &P
) -> Result<Option<Directory>, Error>
[src]
&self,
path: &P
) -> Result<Option<Directory>, Error>
pub fn create_query(&self, query_string: &String) -> Result<Query, Error>
[src]
[src]
Trait Implementations
impl Debug for Database
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more