Expand description
Async HTTP client for a LoonFS server.
Use this crate when your process should talk to a hosted LoonFS runtime
instead of embedding the runtime directly. The client keeps paths simple:
pass a NamespacePath for filesystem operations and use explicit commit
helpers when you need retry control.
The public surface is Client and the values it takes: ClientConfig,
ClientError, NamespacePath, and the per-operation option structs
re-exported below. There is no transport abstraction to implement — a
process that wants the runtime in-process uses the loonfs crate instead,
and the two surfaces share one definition of every option struct (they
live in loonfs-api) so their arguments cannot drift apart.
Re-exports§
pub use ClientError as Error;
Structs§
- Client
- Async HTTP client for LoonFS.
- Client
Config - Client configuration loaded from TOML or built by the caller.
- Copy
Options - Per-operation options, defined once in
loonfs-apiand shared with the embeddedloonfsruntime so the two surfaces cannot drift a field apart. Options for copying a file path. - Create
Directory Options - Per-operation options, defined once in
loonfs-apiand shared with the embeddedloonfsruntime so the two surfaces cannot drift a field apart. Options for creating a directory. - Delete
Options - Per-operation options, defined once in
loonfs-apiand shared with the embeddedloonfsruntime so the two surfaces cannot drift a field apart. Options for deleting a path. - Direct
Download Stream - One direct download response, delivered in bounded chunks and verified against the content reference carried by its grant.
- Move
Options - Per-operation options, defined once in
loonfs-apiand shared with the embeddedloonfsruntime so the two surfaces cannot drift a field apart. Options for moving a path. - Multipart
Upload Resume - What a caller keeps so an interrupted direct multipart upload can pick up rather than start over.
- Namespace
Path - A path qualified by namespace.
- Payload
Source - Where one put reads its payload, and what it knows about it up front.
- PutFile
Options - Per-operation options, defined once in
loonfs-apiand shared with the embeddedloonfsruntime so the two surfaces cannot drift a field apart. Options for writing a file path. - Restore
Revision Options - Per-operation options, defined once in
loonfs-apiand shared with the embeddedloonfsruntime so the two surfaces cannot drift a field apart. Options for restoring a file revision by path. - Undelete
Options - Per-operation options, defined once in
loonfs-apiand shared with the embeddedloonfsruntime so the two surfaces cannot drift a field apart. Options for recovering a deleted file or subtree.
Enums§
- Client
Error - Error returned by the blocking HTTP client.
Constants§
- STREAMING_
PUT_ MIN_ BYTES - Payload size from which a put stops holding its bytes whole.
Traits§
- Multipart
Upload Journal - Where a caller records a direct multipart upload as it happens, so a later run can resume it.
Type Aliases§
- Payload
Stream - A payload delivered in pieces, for a put that must not hold it whole.
- Result
- Result type returned by the client.