pub struct UpdateLayout { /* private fields */ }Expand description
Caller-controlled paths used by an update transaction.
Implementations§
Source§impl UpdateLayout
impl UpdateLayout
Sourcepub fn new(
executable: impl Into<PathBuf>,
state_file: impl Into<PathBuf>,
) -> Self
pub fn new( executable: impl Into<PathBuf>, state_file: impl Into<PathBuf>, ) -> Self
Creates a layout. Paths are never derived from directive content.
Sourcepub fn executable(&self) -> &Path
pub fn executable(&self) -> &Path
Executable replaced by a successful install.
Sourcepub fn state_file(&self) -> &Path
pub fn state_file(&self) -> &Path
Durable transaction marker path.
Trait Implementations§
Source§impl Clone for UpdateLayout
impl Clone for UpdateLayout
Source§fn clone(&self) -> UpdateLayout
fn clone(&self) -> UpdateLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateLayout
impl Debug for UpdateLayout
Source§impl PartialEq for UpdateLayout
impl PartialEq for UpdateLayout
Source§fn eq(&self, other: &UpdateLayout) -> bool
fn eq(&self, other: &UpdateLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UpdateLayout
impl StructuralPartialEq for UpdateLayout
Auto Trait Implementations§
impl Freeze for UpdateLayout
impl RefUnwindSafe for UpdateLayout
impl Send for UpdateLayout
impl Sync for UpdateLayout
impl Unpin for UpdateLayout
impl UnsafeUnpin for UpdateLayout
impl UnwindSafe for UpdateLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.