pub struct InProcessBackplane { /* private fields */ }Expand description
Implementations§
Source§impl InProcessBackplane
impl InProcessBackplane
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates a backplane with the given message buffer capacity.
Trait Implementations§
Source§impl Backplane for InProcessBackplane
impl Backplane for InProcessBackplane
Source§fn publish<'life0, 'async_trait>(
&'life0 self,
message: BackplaneMessage,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn publish<'life0, 'async_trait>(
&'life0 self,
message: BackplaneMessage,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Publishes a message to all other subscribers. Read more
Source§fn subscribe(&self) -> Receiver<BackplaneMessage>
fn subscribe(&self) -> Receiver<BackplaneMessage>
Subscribes to the message stream.
Source§impl Clone for InProcessBackplane
impl Clone for InProcessBackplane
Source§fn clone(&self) -> InProcessBackplane
fn clone(&self) -> InProcessBackplane
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InProcessBackplane
impl RefUnwindSafe for InProcessBackplane
impl Send for InProcessBackplane
impl Sync for InProcessBackplane
impl Unpin for InProcessBackplane
impl UnsafeUnpin for InProcessBackplane
impl UnwindSafe for InProcessBackplane
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