pub enum ChannelConfigField {
Mode,
SchemaId,
SchemaDocument,
}Expand description
The fields compared for configuration identity.
Named by type rather than by string so a consumer branches on the field that differed instead of parsing a message for it.
Variants§
Mode
Durable vs ephemeral.
SchemaId
The protocol schema id advertised to subscribers. Derived from the RAW schema bytes, so two byte sequences that parse to the same document but differ in whitespace differ HERE — and must, because the id is on the wire.
SchemaDocument
The parsed JSON Schema document. Compared as well as the id because the id is a 64-bit non-cryptographic digest: without this, a digest collision would silently accept a different schema as identical.
Trait Implementations§
Source§impl Clone for ChannelConfigField
impl Clone for ChannelConfigField
Source§fn clone(&self) -> ChannelConfigField
fn clone(&self) -> ChannelConfigField
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 ChannelConfigField
Source§impl Debug for ChannelConfigField
impl Debug for ChannelConfigField
Source§impl Display for ChannelConfigField
impl Display for ChannelConfigField
impl Eq for ChannelConfigField
Source§impl PartialEq for ChannelConfigField
impl PartialEq for ChannelConfigField
impl StructuralPartialEq for ChannelConfigField
Auto Trait Implementations§
impl Freeze for ChannelConfigField
impl RefUnwindSafe for ChannelConfigField
impl Send for ChannelConfigField
impl Sync for ChannelConfigField
impl Unpin for ChannelConfigField
impl UnsafeUnpin for ChannelConfigField
impl UnwindSafe for ChannelConfigField
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.