Resource

structured-writer

Writer for streaming structured content.

resource structured-writer;

F check-write

check-write: func() -> result​<u64, stream-error>;

Check readiness for writing. Returns the number of bytes that can be written without blocking.

F write

write: func(contents: bytes) -> result​<_, stream-error>;

Write contents to the in-progress structured content value.