Expand description
Shared write path for NotedThat protocol surfaces.
Re-exports§
pub use patch::PatchMode;pub use patch::patch;pub use replace::ReplaceRequest;pub use replace::replace;
Modules§
- patch
- Shared PATCH splice primitive for object writes.
- replace
- Shared exact-substring replacement primitive for object writes.
Structs§
- Replace
Outcome - Outcome of a replace write operation.
- Write
Sinks - The two places a durable write is reported to, and on whose behalf.
Enums§
- Write
Effect - What a write had already done to storage when a later step failed.
- Write
Error - Errors returned by shared write operations.
Constants§
- MANIFEST_
MAX_ BYTES - The most bytes a manifest may be: a manifest is a few hundred bytes of JSON, and one over this is invalid before it is parsed, so no surface has to buffer an upload of arbitrary size to check it.
- MAX_
UPLOAD_ BYTES - Maximum upload size accepted by shared write paths: 5 GiB.
Functions§
- check_
size - Validate an upload size against a byte limit.
- commit
- Store an object, enqueue a best-effort index upsert event and publish the change.
- commit_
copy - Copy an object natively, enqueue its destination for indexing and publish the change.
- commit_
delete - Delete an object idempotently, publish the change and enqueue a
best-effort tombstone event — in that order, the one rule
after_writefollows (D65). - sniff_
content_ type - Select a content type for an object write.