Expand description
§librados
Idiomatic bindings (both sync and runtime-agnostic async) for Ceph’s librados.
§Linking
This library automatically dynamically links to an in-tree copy of the librados.so.2.0.0
dynamic library, as included in Ceph reef (ceph version 18.2.7 (6b0e988052ec84cf2d4a54ff9bbbc5e720b621ad) reef (stable)).
This means that the computer you run your final binary program on must have a compatible version of librados installed,
and findable in the link path. The default installation of Ceph does this for you automatically.
The librados library is licensed under LGPLv2.1 (see LICENSE-LGPL2.1), which places requirements
on software compiled using this library.
§Usage
For usage examples, start at the Rados struct, or the examples.
§License
This project is licensed under the MIT license. See LICENSE for the full license text.
§Notice
The copy of librados.so.2.0.0 included in this source tree is licensed under the LGPLv2.1 license (see LICENSE-LGPL2.1).
This project dynamically links against librados, licensed
under the LGPLv2.1 license (see LICENSE-LGPL2.1), which places requirements on software compiled using this
library.
Structs§
- Byte
Count - An amount of bytes, with a
core::fmt::Displayimplementation that attempts to render the amount of B/KiB/MiB/GiB/TiB nicely. - Cluster
Stats - Cluster statistics.
- Cursor
- An object cursor.
- Extended
Attributes - An iterator over the extended attributes of a file.
- IoCtx
- A rados input-output context. These are created using
Rados::create_ioctx. - Objects
Iterator - An iterator yielding objects in a pool.
- Omap
KeyValues - An iterator over Omap key value pairs.
- Owned
Object - An owned
ListObject. - Pool
Stats - Statistics about a pool.
- Rados
- A connection to a rados cluster.
- Rados
Config - Configuration to be used when connecting to a Rados cluster.
- RawObject
- Raw objects (that are freed by librados).
- RefObject
- An object reference.
- Stat
- The basic statistics of an object.
Enums§
- File
Config - File configurations that can be applied when connecting to a Rados cluster.
- Namespace
- A namespace within the pool.
- Rados
Error - A rados error.
Traits§
- List
Object - A trait describing the information available on a rados objects obtained from a list.
Type Aliases§
- Result
- A generic result type, containing a value
Tor aRadosError.