pub struct FsckModules { /* private fields */ }Expand description
Validate the settings that strict receive fsck checks in gitmodules. Config syntax errors are warning-only and stop parsing subsequent entries; an unsafe setting parsed before that error remains fatal. Names, values and URL paths are reduced to bounded properties rather than retained strings.
Implementations§
Source§impl FsckModules
impl FsckModules
Sourcepub fn new_received(size: u64, plain: bool) -> Result<Self>
pub fn new_received(size: u64, plain: bool) -> Result<Self>
Match strict receive’s buffer policy for a newly packed plain blob. Native Git streams plain blobs above its default 512 MiB threshold without retaining a config buffer and reports gitmodulesLarge. Delta results and blobs read from earlier packs still provide their contents.
pub fn new(size: u64) -> Self
pub fn update(&mut self, bytes: &[u8]) -> Result<()>
pub fn finish(&mut self) -> Result<()>
Auto Trait Implementations§
impl Freeze for FsckModules
impl RefUnwindSafe for FsckModules
impl Send for FsckModules
impl Sync for FsckModules
impl Unpin for FsckModules
impl UnsafeUnpin for FsckModules
impl UnwindSafe for FsckModules
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