pub enum NegMessage {
Open(Box<NegOpen>),
Msg {
subscription_id: SubscriptionId,
payload: NegPayload,
},
Close {
subscription_id: SubscriptionId,
},
Err {
subscription_id: SubscriptionId,
reason: String,
},
}Expand description
Wire-level NIP-77 envelope.
Variants§
Open(Box<NegOpen>)
["NEG-OPEN", <id>, <filter>, <hex-payload>].
Msg
["NEG-MSG", <id>, <hex-payload>].
Close
["NEG-CLOSE", <id>].
Fields
§
subscription_id: SubscriptionIdSubscription id.
Err
["NEG-ERR", <id>, <reason>].
Fields
§
subscription_id: SubscriptionIdSubscription id.
Trait Implementations§
Source§impl Clone for NegMessage
impl Clone for NegMessage
Source§fn clone(&self) -> NegMessage
fn clone(&self) -> NegMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NegMessage
impl Debug for NegMessage
impl Eq for NegMessage
Source§impl PartialEq for NegMessage
impl PartialEq for NegMessage
impl StructuralPartialEq for NegMessage
Auto Trait Implementations§
impl Freeze for NegMessage
impl RefUnwindSafe for NegMessage
impl Send for NegMessage
impl Sync for NegMessage
impl Unpin for NegMessage
impl UnsafeUnpin for NegMessage
impl UnwindSafe for NegMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.