Struct fama::PipeContent
source · pub struct PipeContent(/* private fields */);Implementations§
source§impl PipeContent
impl PipeContent
pub fn new<T>(content: T) -> Selfwhere T: Clone + Send + Sync + 'static,
sourcepub fn container(&self) -> &Arc<ServiceContainer>
pub fn container(&self) -> &Arc<ServiceContainer>
Returns a busybody’s ServiceContainer
pub fn store<T: Clone + Send + Sync + 'static>(&self, data: T) -> &Self
sourcepub fn stop_the_flow(&self)
pub fn stop_the_flow(&self)
Notify the pipeline to stop flowing the content
Trait Implementations§
source§impl Clone for PipeContent
impl Clone for PipeContent
source§fn clone(&self) -> PipeContent
fn clone(&self) -> PipeContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for PipeContent
impl Default for PipeContent
source§impl Injectable for PipeContent
impl Injectable for PipeContent
source§fn inject<'life0, 'async_trait>(
c: &'life0 ServiceContainer
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn inject<'life0, 'async_trait>( c: &'life0 ServiceContainer ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
The required method that makes a type injectable
source§fn instance<'async_trait>(
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where
Self: Sized + Send + 'async_trait,
fn instance<'async_trait>( ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where Self: Sized + Send + 'async_trait,
Injects and return a concret instance of the injectable type
The global service container is used
source§fn instance_with<'life0, 'async_trait>(
container: &'life0 ServiceContainer
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sized + Send + 'async_trait,
fn instance_with<'life0, 'async_trait>( container: &'life0 ServiceContainer ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where 'life0: 'async_trait, Self: Sized + Send + 'async_trait,
Injects and returns a concrete instance of the injectable type
The provided container will be used
Auto Trait Implementations§
impl RefUnwindSafe for PipeContent
impl Send for PipeContent
impl Sync for PipeContent
impl Unpin for PipeContent
impl UnwindSafe for PipeContent
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