Resource
list-writer
Writer for streaming resource list responses.
resource list-writer;F check-write
check-write: func() -> result<u32, stream-error>;Check readiness for writing. Returns the number of resources that can be written without blocking.
F write
write: func(resource: resource) -> result<_, stream-error>;Write a resource.
F close
close: func(options: option<list-resources-result-options>) -> result<_, stream-error>;Close the resources array and complete the JSON-RPC message.
F send-resources
send-resources: func(id: id, output: output-stream, resources: list<resource>) -> result<_, stream-error>;Send a list of resources as a complete result.
F open
open: func(id: id, output: output-stream, initial: resource) -> result<list-writer, stream-error>;Start the stream of resource descriptions.