Skip to main content

IntoSource

Trait IntoSource 

Source
pub trait IntoSource {
    type Source;

    // Required method
    fn into_source(self) -> Self::Source;
}
Expand description

What a value-definition constructor accepts as its subscription source.

A subject string builds the broker-agnostic by-name source (Name); a source value passes through unchanged, so a broker’s own descriptor mounts the same way. Broker crates implement this for their descriptors next to their SubscriptionSource impls.

Required Associated Types§

Source

type Source

The source the constructor stores.

Required Methods§

Source

fn into_source(self) -> Self::Source

Builds the source.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoSource for &'static str

Source§

impl IntoSource for Cow<'static, str>

Source§

impl IntoSource for String

Implementors§

Source§

impl IntoSource for MemoryPattern

Available on crate feature memory only.
Source§

impl IntoSource for MemorySource

Available on crate feature memory only.
Source§

impl IntoSource for Name

Source§

impl<S> IntoSource for Unnamed<S>