pub struct CDBMake { /* private fields */ }
Expand description
Base interface for making a CDB file.
Example
fn main() -> std::io::Result<()> {
let file = std::fs::File::create("temporary.cdb")?;
let mut cdb = cdb::CDBMake::new(file)?;
cdb.add(b"one", b"Hello,")?;
cdb.add(b"two", b"world!")?;
cdb.finish()?;
Ok(())
}
Implementations
sourceimpl CDBMake
impl CDBMake
sourcepub fn set_permissions(&self, perm: Permissions) -> Result<()>
pub fn set_permissions(&self, perm: Permissions) -> Result<()>
Set the permissions on the underlying file.
Auto Trait Implementations
impl RefUnwindSafe for CDBMake
impl Send for CDBMake
impl Sync for CDBMake
impl Unpin for CDBMake
impl UnwindSafe for CDBMake
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more