pub enum ChannelOperation {
Publish,
Subscribe,
}Expand description
Which channel operation is asking the roster for admission.
Copy, so the hot path allocates nothing to ask. The contrast is
ServerError::UnsupportedOperation’s owned operation: String: that one is
built on a refusal path and pays for its allocation once per refusal, while
this one is consulted on every publish and every subscribe frame that reaches
the connection process.
Variants§
Trait Implementations§
Source§impl Clone for ChannelOperation
impl Clone for ChannelOperation
Source§fn clone(&self) -> ChannelOperation
fn clone(&self) -> ChannelOperation
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 moreimpl Copy for ChannelOperation
Source§impl Debug for ChannelOperation
impl Debug for ChannelOperation
impl Eq for ChannelOperation
Source§impl PartialEq for ChannelOperation
impl PartialEq for ChannelOperation
impl StructuralPartialEq for ChannelOperation
Auto Trait Implementations§
impl Freeze for ChannelOperation
impl RefUnwindSafe for ChannelOperation
impl Send for ChannelOperation
impl Sync for ChannelOperation
impl Unpin for ChannelOperation
impl UnsafeUnpin for ChannelOperation
impl UnwindSafe for ChannelOperation
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.