Struct lightning_signer::persist::Mutations
source · pub struct Mutations(/* private fields */);
Expand description
A list of mutations memorized by a memorizing persister
Implementations§
source§impl Mutations
impl Mutations
sourcepub fn from_vec(mutations: Vec<(String, (u64, Vec<u8>))>) -> Self
pub fn from_vec(mutations: Vec<(String, (u64, Vec<u8>))>) -> Self
Create a new list of mutations from a vector
sourcepub fn add(&mut self, key: String, version: u64, value: Vec<u8>)
pub fn add(&mut self, key: String, version: u64, value: Vec<u8>)
Add a new mutation to the list
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Mutations
impl Send for Mutations
impl Sync for Mutations
impl Unpin for Mutations
impl UnwindSafe for Mutations
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more