Struct rnotifylib::message_router::RoutingInfo
source · pub struct RoutingInfo { /* private fields */ }Expand description
Controls whether a Message should be sent to a destination.
It does this through two “filters”
MessageRoutingBehaviour- A list of
MessageConditions
MessageRoutingBehaviour
This filter is interdependent with the where the message has already be sent. See the documentation for it for more details.
MessageConditions
If none specified, all messages are allowed. Otherwise it acts like a whitelist.
Implementations§
source§impl RoutingInfo
impl RoutingInfo
pub fn of(routing_type: MessageRoutingBehaviour) -> Self
pub fn root() -> Self
pub fn get_routing_behaviour(&self) -> &MessageRoutingBehaviour
pub fn applies_to(&self, message: &Message) -> bool
Trait Implementations§
source§impl Clone for RoutingInfo
impl Clone for RoutingInfo
source§fn clone(&self) -> RoutingInfo
fn clone(&self) -> RoutingInfo
Returns a copy 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 RoutingInfo
impl Debug for RoutingInfo
source§impl<'de> Deserialize<'de> for RoutingInfo
impl<'de> Deserialize<'de> for RoutingInfo
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 PartialEq<RoutingInfo> for RoutingInfo
impl PartialEq<RoutingInfo> for RoutingInfo
source§fn eq(&self, other: &RoutingInfo) -> bool
fn eq(&self, other: &RoutingInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.