pub struct Plan<B: Backend> {
repository: RepoRef,
operations: Vec<B::Operation>,
report: Report,
}Expand description
A pure reconciliation plan bound to one target repository.
Fields§
§repository: RepoRef§operations: Vec<B::Operation>§report: ReportImplementations§
Source§impl<B: Backend> Plan<B>
impl<B: Backend> Plan<B>
Sourcepub async fn for_repository(
repository: RepoRef,
config: &B::Config,
backend: &B,
) -> Result<Self, PlanError<B::Error>>where
B: Sync,
pub async fn for_repository(
repository: RepoRef,
config: &B::Config,
backend: &B,
) -> Result<Self, PlanError<B::Error>>where
B: Sync,
Read a repository and construct its reconciliation plan.
§Errors
Returns an error when the configuration is invalid or the adapter cannot read the target repository.
Sourcepub fn for_snapshot(
repository: RepoRef,
config: &B::Config,
live: &B::Live,
) -> Self
pub fn for_snapshot( repository: RepoRef, config: &B::Config, live: &B::Live, ) -> Self
Construct a plan from a previously read snapshot.
Sourcepub const fn repository(&self) -> &RepoRef
pub const fn repository(&self) -> &RepoRef
The repository this plan targets.
Sourcepub fn operations(&self) -> &[B::Operation]
pub fn operations(&self) -> &[B::Operation]
The operations in their stable application order.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Plan<B>
impl<B> RefUnwindSafe for Plan<B>
impl<B> Send for Plan<B>
impl<B> Sync for Plan<B>
impl<B> Unpin for Plan<B>
impl<B> UnsafeUnpin for Plan<B>
impl<B> UnwindSafe for Plan<B>
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