Skip to main content

Crate notedthat_write

Crate notedthat_write 

Source
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§

ReplaceOutcome
Outcome of a replace write operation.
WriteSinks
The two places a durable write is reported to, and on whose behalf.

Enums§

WriteEffect
What a write had already done to storage when a later step failed.
WriteError
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_write follows (D65).
sniff_content_type
Select a content type for an object write.