#[non_exhaustive]pub enum StreamEventName {
ArticleCreated,
ArticleUpdated,
ConnectionAdmitted,
ConnectionPong,
ConnectionPreempted,
ConnectionError,
Other(String),
}Expand description
event of a WebSocket frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ArticleCreated
article.created
ArticleUpdated
article.updated
ConnectionAdmitted
connection.admitted
ConnectionPong
connection.pong
ConnectionPreempted
connection.preempted
ConnectionError
connection.error
Other(String)
A value this SDK version does not know, kept exactly as received.
Implementations§
Source§impl StreamEventName
impl StreamEventName
pub const ARTICLE_CREATED: &'static str = "article.created"
pub const ARTICLE_UPDATED: &'static str = "article.updated"
pub const CONNECTION_ADMITTED: &'static str = "connection.admitted"
pub const CONNECTION_PONG: &'static str = "connection.pong"
pub const CONNECTION_PREEMPTED: &'static str = "connection.preempted"
pub const CONNECTION_ERROR: &'static str = "connection.error"
Sourcepub const ARTICLE_EVENTS: &'static [&'static str]
pub const ARTICLE_EVENTS: &'static [&'static str]
The article events (websocket.articleEvents in the contract kit).
Sourcepub const CONNECTION_EVENTS: &'static [&'static str]
pub const CONNECTION_EVENTS: &'static [&'static str]
The control events (websocket.connectionEvents in the contract kit).
Trait Implementations§
Source§impl AsRef<str> for StreamEventName
impl AsRef<str> for StreamEventName
Source§impl Clone for StreamEventName
impl Clone for StreamEventName
Source§impl Debug for StreamEventName
impl Debug for StreamEventName
Source§impl<'de> Deserialize<'de> for StreamEventName
impl<'de> Deserialize<'de> for StreamEventName
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 Display for StreamEventName
impl Display for StreamEventName
impl Eq for StreamEventName
Source§impl From<&String> for StreamEventName
impl From<&String> for StreamEventName
Source§impl From<&str> for StreamEventName
impl From<&str> for StreamEventName
Source§impl From<StreamEventName> for String
impl From<StreamEventName> for String
Source§fn from(value: StreamEventName) -> Self
fn from(value: StreamEventName) -> Self
Converts to this type from the input type.
Source§impl From<String> for StreamEventName
impl From<String> for StreamEventName
Source§impl Hash for StreamEventName
impl Hash for StreamEventName
Source§impl PartialEq for StreamEventName
impl PartialEq for StreamEventName
Source§impl PartialEq<&str> for StreamEventName
impl PartialEq<&str> for StreamEventName
Source§impl PartialEq<StreamEventName> for &str
impl PartialEq<StreamEventName> for &str
Source§impl PartialEq<str> for StreamEventName
impl PartialEq<str> for StreamEventName
Auto Trait Implementations§
impl Forget for StreamEventName
impl Freeze for StreamEventName
impl Move for StreamEventName
impl RefUnwindSafe for StreamEventName
impl Send for StreamEventNamewhere
RawVecInner: Send,
impl Sync for StreamEventNamewhere
RawVecInner: Sync,
impl Unpin for StreamEventName
impl UnsafeUnpin for StreamEventName
impl UnwindSafe for StreamEventNamewhere
RawVecInner: UnwindSafe,
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