Struct libimagstore::store::FileLockEntry [] [src]

pub struct FileLockEntry<'a> { /* fields omitted */ }

A struct that allows you to borrow an Entry

Methods from Deref<Target = Entry>

[src]

Return the string representation of this entry

This means not only the content of the entry, but the complete entry (from memory, not from disk).

[src]

Get the location of the Entry

[src]

Get the header of the Entry

[src]

Get the header mutably of the Entry

[src]

Get the content of the Entry

[src]

Get the content mutably of the Entry

[src]

Replace both header and content of the entry by reading from buffer

If an error is returned, the contents of neither the header nor the content are modified.

[src]

Verify the entry.

Currently, this only verifies the header. This might change in the future.

Trait Implementations

impl<'a> Debug for FileLockEntry<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Deref for FileLockEntry<'a>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a> DerefMut for FileLockEntry<'a>
[src]

[src]

Mutably dereferences the value.

impl<'a> Drop for FileLockEntry<'a>
[src]

[src]

This will silently ignore errors, use Store::update if you want to catch the errors

This might panic if the store was compiled with the early-panic feature (which is not intended for production use, though).

Auto Trait Implementations

impl<'a> !Send for FileLockEntry<'a>

impl<'a> !Sync for FileLockEntry<'a>