pub enum ClientMessage {
Event(Box<Event>),
Req(SubscriptionId, Vec<Filter>),
Close(SubscriptionId),
Auth(Box<Event>),
Count(SubscriptionId, Vec<Filter>),
NegOpen(SubscriptionId, Filter, String),
NegMsg(SubscriptionId, String),
NegClose(SubscriptionId),
}
Expand description
A message from a client to a relay
Variants§
Event(Box<Event>)
An event
Req(SubscriptionId, Vec<Filter>)
A subscription request
Close(SubscriptionId)
A request to close a subscription
Auth(Box<Event>)
Used to send authentication events
Count(SubscriptionId, Vec<Filter>)
Count
NegOpen(SubscriptionId, Filter, String)
Negentropy Initiation
NegMsg(SubscriptionId, String)
Negentropy Message
NegClose(SubscriptionId)
Negentropy Close
Trait Implementations§
source§impl Clone for ClientMessage
impl Clone for ClientMessage
source§fn clone(&self) -> ClientMessage
fn clone(&self) -> ClientMessage
Returns a copy of the value. Read more
1.0.0 · 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 ClientMessage
impl Debug for ClientMessage
source§impl<'de> Deserialize<'de> for ClientMessage
impl<'de> Deserialize<'de> for ClientMessage
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ClientMessage
impl PartialEq for ClientMessage
source§impl Serialize for ClientMessage
impl Serialize for ClientMessage
impl Eq for ClientMessage
impl StructuralPartialEq for ClientMessage
Auto Trait Implementations§
impl Freeze for ClientMessage
impl RefUnwindSafe for ClientMessage
impl Send for ClientMessage
impl Sync for ClientMessage
impl Unpin for ClientMessage
impl UnwindSafe for ClientMessage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)