pub struct MessageHandlerDef {
pub kind: MessageHandlerKind,
pub pattern: &'static str,
/* private fields */
}Expand description
Re-exported public API. One transport-neutral message handler declared by a microservice.
Fields§
§kind: MessageHandlerKindWhether the handler is a command or event handler.
pattern: &'static strThe logical subject pattern.
Implementations§
Source§impl MessageHandlerDef
impl MessageHandlerDef
Trait Implementations§
Source§impl Clone for MessageHandlerDef
impl Clone for MessageHandlerDef
Source§fn clone(&self) -> MessageHandlerDef
fn clone(&self) -> MessageHandlerDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MessageHandlerDef
impl !UnwindSafe for MessageHandlerDef
impl Freeze for MessageHandlerDef
impl Send for MessageHandlerDef
impl Sync for MessageHandlerDef
impl Unpin for MessageHandlerDef
impl UnsafeUnpin for MessageHandlerDef
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