pub struct ZoneStore { /* private fields */ }Implementations§
Source§impl ZoneStore
impl ZoneStore
pub fn new() -> Self
pub fn open<P: Into<PathBuf>>( &mut self, file_path: P, fqdn: &str, class: RRClasses, ) -> Result<Option<Zone>, ZoneReaderError>
pub fn open_with_jnl<P: Into<PathBuf>>( &mut self, file_path: P, fqdn: &str, class: RRClasses, journal_path: P, ) -> Result<Option<Zone>, ZoneReaderError>
pub fn add_zone(&mut self, fqdn: &str, zone: Zone) -> Option<Zone>
pub fn remove_zone(&mut self, fqdn: &str, class: RRClasses)
pub fn get_zone_exact(&self, apex: &str, class: &RRClasses) -> Option<&Zone>
pub fn get_zone_exact_mut( &mut self, apex: &str, class: &RRClasses, ) -> Option<&mut Zone>
pub fn get_deepest_zone( &self, name: &str, class: &RRClasses, ) -> Option<(String, &Zone)>
pub fn get_deepest_zone_mut( &mut self, name: &str, class: &RRClasses, ) -> Option<(String, &mut Zone)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZoneStore
impl RefUnwindSafe for ZoneStore
impl Send for ZoneStore
impl Sync for ZoneStore
impl Unpin for ZoneStore
impl UnsafeUnpin for ZoneStore
impl UnwindSafe for ZoneStore
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