pub struct MsgBusOutput<TMsg>where
TMsg: MsgDataBound,{ /* private fields */ }Expand description
Шина MsgBus - отправка исходящих сообщений
Implementations§
Source§impl<TMsg> MsgBusOutput<TMsg>where
TMsg: MsgDataBound,
impl<TMsg> MsgBusOutput<TMsg>where
TMsg: MsgDataBound,
Sourcepub async fn send(&self, msg: Message<TMsg>) -> Result<(), ComponentError>
pub async fn send(&self, msg: Message<TMsg>) -> Result<(), ComponentError>
Отправка исходящих сообщений
Sourcepub fn try_send(&self, msg: Message<TMsg>) -> Result<(), ComponentError>
pub fn try_send(&self, msg: Message<TMsg>) -> Result<(), ComponentError>
Попытка мгновенной отправки исходящих сообщений
Sourcepub fn send_blocking(&self, msg: Message<TMsg>) -> Result<(), ComponentError>
pub fn send_blocking(&self, msg: Message<TMsg>) -> Result<(), ComponentError>
Отправка исходящих сообщений, в синхронном окружении
Sourcepub fn max_capacity(&self) -> usize
pub fn max_capacity(&self) -> usize
Ёмкость канала
Trait Implementations§
Source§impl<TMsg> Clone for MsgBusOutput<TMsg>where
TMsg: MsgDataBound,
impl<TMsg> Clone for MsgBusOutput<TMsg>where
TMsg: MsgDataBound,
Auto Trait Implementations§
impl<TMsg> Freeze for MsgBusOutput<TMsg>
impl<TMsg> RefUnwindSafe for MsgBusOutput<TMsg>
impl<TMsg> Send for MsgBusOutput<TMsg>
impl<TMsg> Sync for MsgBusOutput<TMsg>
impl<TMsg> Unpin for MsgBusOutput<TMsg>
impl<TMsg> UnsafeUnpin for MsgBusOutput<TMsg>
impl<TMsg> UnwindSafe for MsgBusOutput<TMsg>
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