#[non_exhaustive]pub enum Operation {
Show 18 variants
Subscribe,
Publish,
Presence,
ObjectSubscribe,
ObjectPublish,
AnnotationSubscribe,
AnnotationPublish,
MessageUpdateOwn,
MessageUpdateAny,
MessageDeleteOwn,
MessageDeleteAny,
History,
Stats,
PushSubscribe,
PushAdmin,
ChannelMetadata,
PrivilegedHeaders,
Other(String),
}Expand description
An Ably capability operation. #[non_exhaustive]; unknown wire values map to
Other (ADR-0007) so parsing never fails.
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.
Subscribe
Publish
Presence
ObjectSubscribe
ObjectPublish
AnnotationSubscribe
AnnotationPublish
MessageUpdateOwn
MessageUpdateAny
MessageDeleteOwn
MessageDeleteAny
History
Stats
PushSubscribe
PushAdmin
ChannelMetadata
PrivilegedHeaders
Other(String)
A forward-compatible/custom operation string.
Implementations§
Trait Implementations§
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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