Struct rnotifylib::destination::config::DestinationConfig
source · [−]pub struct DestinationConfig { /* private fields */ }Implementations
sourceimpl DestinationConfig
impl DestinationConfig
pub fn new(
routing_type: MessageRoutingBehaviour,
dest_type: DestinationKind,
applies_to: Option<MessageCondition>
) -> Self
pub fn send(&self, message: &Message) -> Result<(), Box<dyn Error>>
pub fn is_root(&self) -> bool
pub fn get_routing_type(&self) -> &MessageRoutingBehaviour
pub fn should_receive(&self, m: &Message) -> bool
Trait Implementations
sourceimpl Clone for DestinationConfig
impl Clone for DestinationConfig
sourcefn clone(&self) -> DestinationConfig
fn clone(&self) -> DestinationConfig
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 DestinationConfig
impl Debug for DestinationConfig
sourceimpl<'de> Deserialize<'de> for DestinationConfig
impl<'de> Deserialize<'de> for DestinationConfig
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<DestinationConfig> for DestinationConfig
impl PartialEq<DestinationConfig> for DestinationConfig
sourcefn eq(&self, other: &DestinationConfig) -> bool
fn eq(&self, other: &DestinationConfig) -> bool
sourceimpl Serialize for DestinationConfig
impl Serialize for DestinationConfig
impl StructuralPartialEq for DestinationConfig
Auto Trait Implementations
impl RefUnwindSafe for DestinationConfig
impl Send for DestinationConfig
impl Sync for DestinationConfig
impl Unpin for DestinationConfig
impl UnwindSafe for DestinationConfig
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