pub enum MessageRoutingBehaviour {
Root,
Drain,
Additive,
}
Expand description
Handles whether messages are routed here / if they will be routed to other destinations.
Variants§
Root
SelfError
messages in addition to all messages will be sent here.
It is recommended to have at least one Root destination, as this serves as a “log”
for all the notifications.
This is normally a FileDestination
since that unlikely to fail.
Drain
Messages will be sent here if they would not be sent elsewhere (excluding Self::Root destinations). Useful if you want to route “unsorted” messages. A “lazy” destination - checks everything else first.
Additive
The default option - Messages will be sent here under normal circumstances.
Implementations§
Source§impl MessageRoutingBehaviour
impl MessageRoutingBehaviour
pub fn always_send_messages(&self) -> bool
pub fn always_receives_errors(&self) -> bool
Trait Implementations§
Source§impl Clone for MessageRoutingBehaviour
impl Clone for MessageRoutingBehaviour
Source§fn clone(&self) -> MessageRoutingBehaviour
fn clone(&self) -> MessageRoutingBehaviour
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 MessageRoutingBehaviour
impl Debug for MessageRoutingBehaviour
Source§impl Default for MessageRoutingBehaviour
impl Default for MessageRoutingBehaviour
Source§impl<'de> Deserialize<'de> for MessageRoutingBehaviour
impl<'de> Deserialize<'de> for MessageRoutingBehaviour
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 MessageRoutingBehaviour
impl PartialEq for MessageRoutingBehaviour
Source§impl Serialize for MessageRoutingBehaviour
impl Serialize for MessageRoutingBehaviour
impl StructuralPartialEq for MessageRoutingBehaviour
Auto Trait Implementations§
impl Freeze for MessageRoutingBehaviour
impl RefUnwindSafe for MessageRoutingBehaviour
impl Send for MessageRoutingBehaviour
impl Sync for MessageRoutingBehaviour
impl Unpin for MessageRoutingBehaviour
impl UnwindSafe for MessageRoutingBehaviour
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