2017-06-11 14:48:31 +01:00
|
|
|
// Copyright (c) 2017 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
|
|
|
|
//
|
|
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
|
|
pub mod event;
|
|
|
|
|
|
|
|
|
|
pub use self::event::PubSubEvent;
|
2018-05-14 17:49:25 +02:00
|
|
|
|
|
|
|
|
generate_id!(NodeName);
|
|
|
|
|
generate_id!(ItemId);
|
|
|
|
|
generate_id!(SubscriptionId);
|
2018-05-14 21:02:22 +02:00
|
|
|
|
|
|
|
|
generate_attribute!(Subscription, "subscription", {
|
|
|
|
|
None => "none",
|
|
|
|
|
Pending => "pending",
|
|
|
|
|
Subscribed => "subscribed",
|
|
|
|
|
Unconfigured => "unconfigured",
|
|
|
|
|
}, Default = None);
|