#[non_exhaustive]pub struct NtdsFile { /* private fields */ }Expand description
A minimally-parsed NTDS.dit — enough to confirm the file is a valid ESE database and
expose its format metadata. Full row iteration is the caller’s job via EseBackend.
Implementations§
Source§impl NtdsFile
impl NtdsFile
Sourcepub fn open(path: impl AsRef<Path>) -> Result<Self, Error>
pub fn open(path: impl AsRef<Path>) -> Result<Self, Error>
Open + validate an NTDS.dit file. Reads only the 668-byte database header.
Sourcepub fn parse_header(hdr: &[u8]) -> Result<Self, Error>
pub fn parse_header(hdr: &[u8]) -> Result<Self, Error>
Parse an already-read 668-byte ESE database header. Useful for tests and for callers that already hold the bytes.
pub fn format_version(&self) -> u32
pub fn page_size(&self) -> u32
pub fn file_type(&self) -> u32
Trait Implementations§
impl Copy for NtdsFile
impl Eq for NtdsFile
impl StructuralPartialEq for NtdsFile
Auto Trait Implementations§
impl Freeze for NtdsFile
impl RefUnwindSafe for NtdsFile
impl Send for NtdsFile
impl Sync for NtdsFile
impl Unpin for NtdsFile
impl UnsafeUnpin for NtdsFile
impl UnwindSafe for NtdsFile
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