[−][src]Struct libimagstore::store::FileLockEntry
A struct that allows you to borrow an Entry
Methods from Deref<Target = Entry>
pub fn to_str(&self) -> Result<String>
[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).
pub fn get_location(&self) -> &StoreId
[src]
Get the location of the Entry
pub fn get_header(&self) -> &Value
[src]
Get the header of the Entry
pub fn get_header_mut(&mut self) -> &mut Value
[src]
Get the header mutably of the Entry
pub fn get_content(&self) -> &EntryContent
[src]
Get the content of the Entry
pub fn set_content(&mut self, content: EntryContent)
[src]
Set the content of the Entry
pub fn get_content_mut(&mut self) -> &mut EntryContent
[src]
Get the content mutably of the Entry
pub fn replace_from_buffer(&mut self, buf: &str) -> Result<()>
[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.
pub fn verify(&self) -> Result<()>
[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]
impl<'a> Deref for FileLockEntry<'a>
[src]
impl<'a> DerefMut for FileLockEntry<'a>
[src]
impl<'a> Drop for FileLockEntry<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for FileLockEntry<'a>
impl<'a> !Send for FileLockEntry<'a>
impl<'a> !Sync for FileLockEntry<'a>
impl<'a> Unpin for FileLockEntry<'a>
impl<'a> !UnwindSafe for FileLockEntry<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,