Struct BarrelBuilder
pub struct BarrelBuilder<E: RuntimeEnv + 'static, H: Send + Clone> { /* private fields */ }Expand description
Builds a Barrel object with the given configurations.
Implementations§
§impl<E: RuntimeEnv + 'static, H: Send + Clone + 'static> BarrelBuilder<E, H>
impl<E: RuntimeEnv + 'static, H: Send + Clone + 'static> BarrelBuilder<E, H>
pub async fn build(self) -> Result<(Barrel<E, H>, Vec<LyquidFunc>), Error>where
H: HasCallKind,
pub fn host_api(self, method: &str, func: HostAPIFunc<H>) -> Result<Self, Error>where
H: HasCallKind,
pub fn functions(&self) -> Result<Vec<(String, String, String)>, Error>
Auto Trait Implementations§
impl<E, H> Freeze for BarrelBuilder<E, H>
impl<E, H> !RefUnwindSafe for BarrelBuilder<E, H>
impl<E, H> Send for BarrelBuilder<E, H>
impl<E, H> Sync for BarrelBuilder<E, H>where
H: Sync,
impl<E, H> Unpin for BarrelBuilder<E, H>
impl<E, H> !UnwindSafe for BarrelBuilder<E, H>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more