Skip to main content

Plan

Struct Plan 

Source
pub struct Plan<S, I>(/* private fields */);
Expand description

Unresolved storage and installer retained as one startup input.

Resolution consumes both values and retains the claimed installer in the resulting Prepared, so installation uses those exact resource owners.

Implementations§

Source§

impl<S, I> Plan<S, I>

Source

pub const fn new(storage: S, install: I) -> Self

Source

pub fn into_parts(self) -> (S, I)

Transfers both resource owners into a larger topology.

Source

pub fn for_profile<P>(self) -> Result<Prepared<S, I>, Claim>
where P: Profile, S: Plan + Resource, I: Resource,

Source

pub fn with_config(self, baseline: Config) -> Result<Prepared<S, I>, Claim>
where S: Plan + Resource, I: Resource,

Source

pub fn for_receive<P>(self) -> Result<Prepared<S, I>, Claim>
where P: Profile, S: Plan + Resource, I: Resource,

Source

pub fn for_install<P>(self) -> Result<Prepared<S, I>, Claim>
where P: Profile, S: Claimless, I: Resource,

Source

pub fn with_install(self, baseline: Config) -> Result<Prepared<S, I>, Claim>
where S: Claimless, I: Resource,

Auto Trait Implementations§

§

impl<S, I> Forget for Plan<S, I>

§

impl<S, I> Freeze for Plan<S, I>
where (S, I): Freeze,

§

impl<S, I> RefUnwindSafe for Plan<S, I>

§

impl<S, I> Send for Plan<S, I>
where (S, I): Send,

§

impl<S, I> Sync for Plan<S, I>
where (S, I): Sync,

§

impl<S, I> Unpin for Plan<S, I>
where (S, I): Unpin,

§

impl<S, I> UnsafeUnpin for Plan<S, I>

§

impl<S, I> UnwindSafe for Plan<S, I>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.