pub struct MsgMgr<'a> { /* private fields */ }Implementations§
Source§impl<'a> MsgMgr<'a>
impl<'a> MsgMgr<'a>
pub fn new( transports: Vec<(Range<Channel>, &'a (dyn Transport + 'a))>, ) -> MsgMgr<'_>
pub fn init(&mut self) -> Result<String, String>
pub fn get_transport_names(&self) -> Result<Vec<String>, String>
pub fn publish( &mut self, _ch: Channel, _msg: &'a dyn Msg, ) -> Result<String, String>
pub fn subscribe( &mut self, _ch: Channel, _f: fn(Channel, &dyn Msg) -> Result<String, String>, ) -> Result<String, String>
Auto Trait Implementations§
impl<'a> Freeze for MsgMgr<'a>
impl<'a> !RefUnwindSafe for MsgMgr<'a>
impl<'a> !Send for MsgMgr<'a>
impl<'a> !Sync for MsgMgr<'a>
impl<'a> Unpin for MsgMgr<'a>
impl<'a> !UnwindSafe for MsgMgr<'a>
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