pub enum SparkGenericModuleMessage<Message, Response, CancellationMessage: SparkChannelCancellationTrait, Error> {
Request(CallbackWrapper<Message, Result<Response, Error>>),
Command(Message),
Shutdown(CancellationMessage),
}Expand description
The message type for the module dispatcher.
Variants§
Request(CallbackWrapper<Message, Result<Response, Error>>)
A request message with an error type.
Command(Message)
A command message.
Shutdown(CancellationMessage)
A shutdown message.
Auto Trait Implementations§
impl<Message, Response, CancellationMessage, Error> Freeze for SparkGenericModuleMessage<Message, Response, CancellationMessage, Error>
impl<Message, Response, CancellationMessage, Error> !RefUnwindSafe for SparkGenericModuleMessage<Message, Response, CancellationMessage, Error>
impl<Message, Response, CancellationMessage, Error> Send for SparkGenericModuleMessage<Message, Response, CancellationMessage, Error>
impl<Message, Response, CancellationMessage, Error> Sync for SparkGenericModuleMessage<Message, Response, CancellationMessage, Error>
impl<Message, Response, CancellationMessage, Error> Unpin for SparkGenericModuleMessage<Message, Response, CancellationMessage, Error>
impl<Message, Response, CancellationMessage, Error> !UnwindSafe for SparkGenericModuleMessage<Message, Response, CancellationMessage, Error>
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