Struct ota_update_client::Diff
source · pub struct Diff {
pub pairs: Vec<(String, String)>,
pub state_transfer_functions: Vec<String>,
}
Expand description
A representation of an diff file used to define an evolutionary crate swapping update.
Fields§
§pairs: Vec<(String, String)>
A list of tuples in which the first element is the old crate and the second element is the new crate. If the first element is the empty string, the second element is a new addition (replacing nothing), and if the second element is the empty string, the first element is to be removed without replacement.
state_transfer_functions: Vec<String>
The list of state transfer functions which should be applied at the end of a crate swapping operation.
Auto Trait Implementations§
impl RefUnwindSafe for Diff
impl Send for Diff
impl Sync for Diff
impl Unpin for Diff
impl UnwindSafe for Diff
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