Struct libcnb::build::BuildContext[][src]

pub struct BuildContext<P: Platform> {
    pub app_dir: PathBuf,
    pub buildpack_dir: PathBuf,
    pub stack_id: String,
    pub platform: P,
    pub buildpack_plan: BuildpackPlan,
    pub buildpack_descriptor: BuildpackToml,
    // some fields omitted
}

Fields

app_dir: PathBufbuildpack_dir: PathBufstack_id: Stringplatform: Pbuildpack_plan: BuildpackPlanbuildpack_descriptor: BuildpackToml

Implementations

impl<P: Platform> BuildContext<P>[src]

pub fn layer(&self, name: impl AsRef<str>) -> Result<Layer, Error>[src]

Get access to a new or existing layer

pub fn write_launch(&self, data: Launch) -> Result<(), Error>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for BuildContext<P> where
    P: RefUnwindSafe

impl<P> Send for BuildContext<P> where
    P: Send

impl<P> Sync for BuildContext<P> where
    P: Sync

impl<P> Unpin for BuildContext<P> where
    P: Unpin

impl<P> UnwindSafe for BuildContext<P> where
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.