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
MessageCondition
s
§MessageRoutingBehaviour
This filter is interdependent with the where the message has already be sent. See the documentation for it for more details.
§MessageCondition
s
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 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 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 for RoutingInfo
impl PartialEq for RoutingInfo
Source§impl Serialize for RoutingInfo
impl Serialize for RoutingInfo
impl StructuralPartialEq for RoutingInfo
Auto Trait Implementations§
impl Freeze for RoutingInfo
impl RefUnwindSafe for RoutingInfo
impl Send for RoutingInfo
impl Sync for RoutingInfo
impl Unpin for RoutingInfo
impl UnwindSafe for RoutingInfo
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