pub enum MessageRoutingBehaviour {
Root,
Drain,
Additive,
}Expand description
Handles whether messages are routed here / if they will be routed to other destinations.
Variants
Root
crate::message::Level::SelfError messages in addition to all messages will be sent here.
Drain
Messages will be sent here if they would not be sent elsewhere (excludes 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
sourceimpl MessageRoutingBehaviour
impl MessageRoutingBehaviour
pub fn always_send_messages(&self) -> bool
pub fn always_receives_errors(&self) -> bool
Trait Implementations
sourceimpl Clone for MessageRoutingBehaviour
impl Clone for MessageRoutingBehaviour
sourcefn clone(&self) -> MessageRoutingBehaviour
fn clone(&self) -> MessageRoutingBehaviour
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for MessageRoutingBehaviour
impl Debug for MessageRoutingBehaviour
sourceimpl Default for MessageRoutingBehaviour
impl Default for MessageRoutingBehaviour
sourceimpl<'de> Deserialize<'de> for MessageRoutingBehaviour
impl<'de> Deserialize<'de> for MessageRoutingBehaviour
sourcefn 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
sourceimpl PartialEq<MessageRoutingBehaviour> for MessageRoutingBehaviour
impl PartialEq<MessageRoutingBehaviour> for MessageRoutingBehaviour
sourcefn eq(&self, other: &MessageRoutingBehaviour) -> bool
fn eq(&self, other: &MessageRoutingBehaviour) -> bool
sourceimpl Serialize for MessageRoutingBehaviour
impl Serialize for MessageRoutingBehaviour
impl StructuralPartialEq for MessageRoutingBehaviour
Auto Trait Implementations
impl RefUnwindSafe for MessageRoutingBehaviour
impl Send for MessageRoutingBehaviour
impl Sync for MessageRoutingBehaviour
impl Unpin for MessageRoutingBehaviour
impl UnwindSafe for MessageRoutingBehaviour
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more