#[non_exhaustive]pub struct Sponge { /* private fields */ }Expand description
Runtime engine for one sponge invocation. Constructed via SpongeBuilder.
Implementations§
Source§impl Sponge
impl Sponge
Sourcepub fn run<R: Read>(&mut self, reader: R) -> Result<(), Error>
pub fn run<R: Read>(&mut self, reader: R) -> Result<(), Error>
Drain the reader, write the buffered bytes to the configured target. On the regular-file path this performs sibling-tempfile + atomic rename; on the symlink/reparse path the write-through fallback (FR-010) is pending Polish phase — the MVP returns an error there.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sponge
impl RefUnwindSafe for Sponge
impl Send for Sponge
impl Sync for Sponge
impl Unpin for Sponge
impl UnsafeUnpin for Sponge
impl UnwindSafe for Sponge
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