Struct urbit_http_api::subscription::Subscription [−][src]
pub struct Subscription {
pub channel_uid: String,
pub creation_id: CreationID,
pub app: String,
pub path: String,
pub message_list: Vec<String>,
}Fields
channel_uid: StringThe uid of the channel this subscription was made in
creation_id: CreationIDThe id of the message that created this subscription
app: StringThe app that is being subscribed to
path: StringThe path of the app being subscribed to
message_list: Vec<String>Implementations
Parses an event and adds it to the message list if it’s id
matches the Subscription creation_id. On success returns
the length of the message list.
Pops a message from the front of Subscription’s message_list.
If no messages are left, returns None.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Subscriptionimpl Send for Subscriptionimpl Sync for Subscriptionimpl Unpin for Subscriptionimpl UnwindSafe for SubscriptionBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V