Struct msr_plugin::PluginContainer
source · [−]pub struct PluginContainer<M, E> {
pub ports: PluginPorts<M, E>,
pub message_loop: MessageLoop,
}
Fields
ports: PluginPorts<M, E>
message_loop: MessageLoop
Trait Implementations
sourceimpl<M, E> Plugin for PluginContainer<M, E>
impl<M, E> Plugin for PluginContainer<M, E>
type Message = M
type Message = M
The message type
type Event = PublishedEvent<E>
type Event = PublishedEvent<E>
The event type
sourcefn message_sender(&self) -> MessageSender<Self::Message>
fn message_sender(&self) -> MessageSender<Self::Message>
Endpoint for submitting messages Read more
sourcefn subscribe_events(&self) -> Receiver<Self::Event>
fn subscribe_events(&self) -> Receiver<Self::Event>
Subscribe to plugin events Read more
sourcefn run(self) -> MessageLoop
fn run(self) -> MessageLoop
Run the message loop
Auto Trait Implementations
impl<M, E> !RefUnwindSafe for PluginContainer<M, E>
impl<M, E> Send for PluginContainer<M, E> where
E: Send,
M: Send,
impl<M, E> !Sync for PluginContainer<M, E>
impl<M, E> Unpin for PluginContainer<M, E>
impl<M, E> !UnwindSafe for PluginContainer<M, E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more