#[non_exhaustive]#[repr(C)]pub enum MessagingPattern {
RequestResponse(StaticConfig),
PublishSubscribe(StaticConfig),
Event(StaticConfig),
Blackboard(StaticConfig),
}Expand description
Contains the static config of the corresponding
service::MessagingPattern.
§Safety
This is a large struct (>1KB). Be cautious with where it is placed and how it is passed around.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RequestResponse(StaticConfig)
Stores the static config of the
service::MessagingPattern::RequestResponse
PublishSubscribe(StaticConfig)
Stores the static config of the
service::MessagingPattern::PublishSubscribe
Event(StaticConfig)
Stores the static config of the
service::MessagingPattern::Event
Blackboard(StaticConfig)
Stores the static config of the
service::MessagingPattern::Blackboard
Implementations§
Source§impl MessagingPattern
impl MessagingPattern
Sourcepub unsafe fn publish_subscribe(&self) -> &StaticConfig
pub unsafe fn publish_subscribe(&self) -> &StaticConfig
§Safety
- User must ensure that publish subscribe is stored inside
Sourcepub unsafe fn request_response(&self) -> &StaticConfig
pub unsafe fn request_response(&self) -> &StaticConfig
§Safety
- User must ensure that event is stored inside
Trait Implementations§
Source§impl Clone for MessagingPattern
impl Clone for MessagingPattern
Source§fn clone(&self) -> MessagingPattern
fn clone(&self) -> MessagingPattern
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 moreimpl Copy for MessagingPattern
Source§impl Debug for MessagingPattern
impl Debug for MessagingPattern
Source§impl<'de> Deserialize<'de> for MessagingPattern
impl<'de> Deserialize<'de> for MessagingPattern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MessagingPattern
impl Display for MessagingPattern
impl Eq for MessagingPattern
Source§impl Hash for MessagingPattern
impl Hash for MessagingPattern
Source§impl PartialEq for MessagingPattern
impl PartialEq for MessagingPattern
Source§impl Serialize for MessagingPattern
impl Serialize for MessagingPattern
impl StructuralPartialEq for MessagingPattern
Source§impl ZeroCopySend for MessagingPattern
impl ZeroCopySend for MessagingPattern
Auto Trait Implementations§
impl Freeze for MessagingPattern
impl RefUnwindSafe for MessagingPattern
impl Send for MessagingPattern
impl Sync for MessagingPattern
impl Unpin for MessagingPattern
impl UnsafeUnpin for MessagingPattern
impl UnwindSafe for MessagingPattern
Blanket Implementations§
impl<T> BagType for T
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