pub struct MessageTypeRegistry {
pub messages: Vec<MessageTypeInfo>,
pub responses: Vec<MessageTypeInfo>,
}Expand description
Registry of message types for a kernel.
Fields§
§messages: Vec<MessageTypeInfo>Registered message types.
responses: Vec<MessageTypeInfo>Registered response types.
Implementations§
Source§impl MessageTypeRegistry
impl MessageTypeRegistry
Sourcepub fn register_message(&mut self, info: MessageTypeInfo)
pub fn register_message(&mut self, info: MessageTypeInfo)
Register a message type.
Sourcepub fn register_response(&mut self, info: MessageTypeInfo)
pub fn register_response(&mut self, info: MessageTypeInfo)
Register a response type.
Sourcepub fn generate_structs(&self) -> String
pub fn generate_structs(&self) -> String
Generate all struct definitions.
Trait Implementations§
Source§impl Clone for MessageTypeRegistry
impl Clone for MessageTypeRegistry
Source§fn clone(&self) -> MessageTypeRegistry
fn clone(&self) -> MessageTypeRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageTypeRegistry
impl Debug for MessageTypeRegistry
Source§impl Default for MessageTypeRegistry
impl Default for MessageTypeRegistry
Source§fn default() -> MessageTypeRegistry
fn default() -> MessageTypeRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MessageTypeRegistry
impl RefUnwindSafe for MessageTypeRegistry
impl Send for MessageTypeRegistry
impl Sync for MessageTypeRegistry
impl Unpin for MessageTypeRegistry
impl UnwindSafe for MessageTypeRegistry
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