20 unstable releases (3 breaking)

0.7.5 Nov 8, 2024
0.7.4 Oct 24, 2024
0.7.2 Sep 27, 2024
0.6.8 Jul 31, 2024
0.4.3 Jan 22, 2024

#2251 in Cryptography

Download history 8/week @ 2024-08-17 18/week @ 2024-08-24 206/week @ 2024-08-31 21/week @ 2024-09-07 216/week @ 2024-09-14 258/week @ 2024-09-21 82/week @ 2024-09-28 17/week @ 2024-10-05 169/week @ 2024-10-12 161/week @ 2024-10-19 37/week @ 2024-10-26 117/week @ 2024-11-02 57/week @ 2024-11-09 14/week @ 2024-11-16 16/week @ 2024-11-23 18/week @ 2024-11-30

201 downloads per month
Used in 6 crates

MIT license

16KB

The backend of a container

Create a container

The Create trait is used to create a new instance of a Backend.

Mainly, is performs the following tasks:

  1. It creates the Backend::Settings of the backend. The settings contains runtime information which are stored in the header of the container. Later, when the container is opened again, the settings are extracted from the header and passed back to the backend.
  2. The final [Create::build()] call creates the backend instance, which is used by the container. Its gets the binary data of the header (which already contains the binary encoded settings) and must store it at a suitable location.

Open a container

The Open trait is used to open an existing Backend instance.

The container asks the trait for the binary header data using the ReceiveHeader trait. The implementation should load it from a suitable location.

The final [Open::build()] call creates the backend instance, which is used by the container.

No runtime deps