pub struct SubscriptionService<T, U> {
pub name: String,
/* private fields */
}
Fields§
§name: String
Implementations§
source§impl<T: Clone, U> SubscriptionService<T, U>
impl<T: Clone, U> SubscriptionService<T, U>
sourcepub fn subscribe(name: &str, items: T) -> (Self, Receiver<(), U>)
pub fn subscribe(name: &str, items: T) -> (Self, Receiver<(), U>)
Constructs an subscription object for items
Returns the subscription object, and the receiving end of a channel that subscription will be sent to