pub struct RecipientList { /* private fields */ }Implementations§
Source§impl RecipientList
impl RecipientList
Sourcepub fn new() -> RecipientList
pub fn new() -> RecipientList
Creates a new, empty RecipientList.
Sourcepub fn add<P>(self, p: P) -> RecipientListwhere
P: Processor + 'static,
pub fn add<P>(self, p: P) -> RecipientListwhere
P: Processor + 'static,
Trait Implementations§
Source§impl Debug for RecipientList
impl Debug for RecipientList
Source§impl Default for RecipientList
impl Default for RecipientList
Source§fn default() -> RecipientList
fn default() -> RecipientList
Returns the “default value” for a type. Read more
Source§impl Processor for RecipientList
impl Processor for RecipientList
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
exchange: &'life1 mut Exchange,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
RecipientList: 'async_trait,
fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
exchange: &'life1 mut Exchange,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
RecipientList: 'async_trait,
Processes the exchange by passing it through each recipient processor in order.
§Errors
Returns an error if any recipient processor returns an error.
Auto Trait Implementations§
impl Freeze for RecipientList
impl !RefUnwindSafe for RecipientList
impl Send for RecipientList
impl Sync for RecipientList
impl Unpin for RecipientList
impl !UnwindSafe for RecipientList
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