Struct aldrin_core::channel::Bounded
source · pub struct Bounded { /* private fields */ }
Expand description
A bounded channels-based transport for connecting a broker and a client in the same process.
Bounded transports have an internal fifo for receiving Message
s. If this runs full,
backpressure will be applied to the sender.
Trait Implementations§
source§impl AsyncTransport for Bounded
impl AsyncTransport for Bounded
§type Error = Disconnected
type Error = Disconnected
Error type when sending or receiving messages.
source§fn receive_poll(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Message, Disconnected>>
fn receive_poll( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Result<Message, Disconnected>>
Attempts to receive the next message.
source§fn send_poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Disconnected>>
fn send_poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Result<(), Disconnected>>
Prepares the transport for sending a message. Read more
source§fn send_start(self: Pin<&mut Self>, msg: Message) -> Result<(), Disconnected>
fn send_start(self: Pin<&mut Self>, msg: Message) -> Result<(), Disconnected>
Begins sending a message. Read more
Auto Trait Implementations§
impl Freeze for Bounded
impl !RefUnwindSafe for Bounded
impl Send for Bounded
impl Sync for Bounded
impl Unpin for Bounded
impl !UnwindSafe for Bounded
Blanket Implementations§
source§impl<T> AsyncTransportExt for Twhere
T: AsyncTransport,
impl<T> AsyncTransportExt for Twhere
T: AsyncTransport,
fn receive(&mut self) -> Receive<'_, Self> ⓘwhere
Self: Unpin,
fn send(&mut self, msg: Message) -> Send<'_, Self> ⓘwhere
Self: Unpin,
fn flush(&mut self) -> Flush<'_, Self> ⓘwhere
Self: Unpin,
fn send_and_flush(&mut self, msg: Message) -> SendFlush<'_, Self> ⓘwhere
Self: Unpin,
fn receive_poll_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<Message, Self::Error>>where
Self: Unpin,
fn send_poll_ready_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>where
Self: Unpin,
fn send_start_unpin(&mut self, msg: Message) -> Result<(), Self::Error>where
Self: Unpin,
fn send_poll_flush_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>where
Self: Unpin,
fn map_err<F, E>(self, f: F) -> MapError<Self, F>
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