pub enum BusChannelControl<ChannelId, MSG> {
Subscribe(ChannelId),
Unsubscribe(ChannelId),
Publish(ChannelId, bool, MSG),
}
Variants§
Subscribe(ChannelId)
Unsubscribe(ChannelId)
Publish(ChannelId, bool, MSG)
The first parameter is the channel id, the second parameter is whether the message is safe, and the third parameter is the message.
Implementations§
Source§impl<ChannelId, MSG> BusChannelControl<ChannelId, MSG>
impl<ChannelId, MSG> BusChannelControl<ChannelId, MSG>
pub fn convert_into<NChannelId: From<ChannelId>, NMSG: From<MSG>>( self, ) -> BusChannelControl<NChannelId, NMSG>
Trait Implementations§
Auto Trait Implementations§
impl<ChannelId, MSG> Freeze for BusChannelControl<ChannelId, MSG>
impl<ChannelId, MSG> RefUnwindSafe for BusChannelControl<ChannelId, MSG>where
ChannelId: RefUnwindSafe,
MSG: RefUnwindSafe,
impl<ChannelId, MSG> Send for BusChannelControl<ChannelId, MSG>
impl<ChannelId, MSG> Sync for BusChannelControl<ChannelId, MSG>
impl<ChannelId, MSG> Unpin for BusChannelControl<ChannelId, MSG>
impl<ChannelId, MSG> UnwindSafe for BusChannelControl<ChannelId, MSG>where
ChannelId: UnwindSafe,
MSG: UnwindSafe,
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