pub struct InstallRockspecBuilder<'a, T, S: State = Empty>where
T: InstallTree,{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with _build().
Implementations§
Source§impl<'a, T, S: State> InstallRockspecBuilder<'a, T, S>where
T: InstallTree,
impl<'a, T, S: State> InstallRockspecBuilder<'a, T, S>where
T: InstallTree,
Sourcepub fn rockspec(
self,
value: RemoteLuaRockspec,
) -> InstallRockspecBuilder<'a, T, SetRockspec<S>>where
S::Rockspec: IsUnset,
pub fn rockspec(
self,
value: RemoteLuaRockspec,
) -> InstallRockspecBuilder<'a, T, SetRockspec<S>>where
S::Rockspec: IsUnset,
Required.
Sourcepub fn pin(self, value: PinnedState) -> InstallRockspecBuilder<'a, T, SetPin<S>>where
S::Pin: IsUnset,
pub fn pin(self, value: PinnedState) -> InstallRockspecBuilder<'a, T, SetPin<S>>where
S::Pin: IsUnset,
Required.
Sourcepub fn config(
self,
value: &'a Config,
) -> InstallRockspecBuilder<'a, T, SetConfig<S>>where
S::Config: IsUnset,
pub fn config(
self,
value: &'a Config,
) -> InstallRockspecBuilder<'a, T, SetConfig<S>>where
S::Config: IsUnset,
Required.
Sourcepub fn tree(self, value: &'a T) -> InstallRockspecBuilder<'a, T, SetTree<S>>where
S::Tree: IsUnset,
pub fn tree(self, value: &'a T) -> InstallRockspecBuilder<'a, T, SetTree<S>>where
S::Tree: IsUnset,
Required.
Source§impl<T: InstallTree + Sync + Send + Clone + 'static, State: State + IsComplete> InstallRockspecBuilder<'_, T, State>
impl<T: InstallTree + Sync + Send + Clone + 'static, State: State + IsComplete> InstallRockspecBuilder<'_, T, State>
pub async fn install(self) -> Result<LockedPackage, InstallRockspecError>
Auto Trait Implementations§
impl<'a, T, S = Empty> !RefUnwindSafe for InstallRockspecBuilder<'a, T, S>
impl<'a, T, S = Empty> !UnwindSafe for InstallRockspecBuilder<'a, T, S>
impl<'a, T, S> Freeze for InstallRockspecBuilder<'a, T, S>where
PhantomData<(fn() -> S, &'a (), fn() -> PhantomData<InstallRockspec<'a, T>>, fn() -> PhantomData<T>)>: Freeze,
(Option<RemoteLuaRockspec>, Option<PinnedState>, Option<&'a Config>, Option<&'a T>): Freeze,
impl<'a, T, S> Send for InstallRockspecBuilder<'a, T, S>where
PhantomData<(fn() -> S, &'a (), fn() -> PhantomData<InstallRockspec<'a, T>>, fn() -> PhantomData<T>)>: Send,
(Option<RemoteLuaRockspec>, Option<PinnedState>, Option<&'a Config>, Option<&'a T>): Send,
impl<'a, T, S> Sync for InstallRockspecBuilder<'a, T, S>where
PhantomData<(fn() -> S, &'a (), fn() -> PhantomData<InstallRockspec<'a, T>>, fn() -> PhantomData<T>)>: Sync,
(Option<RemoteLuaRockspec>, Option<PinnedState>, Option<&'a Config>, Option<&'a T>): Sync,
impl<'a, T, S> Unpin for InstallRockspecBuilder<'a, T, S>where
PhantomData<(fn() -> S, &'a (), fn() -> PhantomData<InstallRockspec<'a, T>>, fn() -> PhantomData<T>)>: Unpin,
(Option<RemoteLuaRockspec>, Option<PinnedState>, Option<&'a Config>, Option<&'a T>): Unpin,
impl<'a, T, S> UnsafeUnpin for InstallRockspecBuilder<'a, T, S>where
PhantomData<(fn() -> S, &'a (), fn() -> PhantomData<InstallRockspec<'a, T>>, fn() -> PhantomData<T>)>: UnsafeUnpin,
(Option<RemoteLuaRockspec>, Option<PinnedState>, Option<&'a Config>, Option<&'a T>): UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.