#[non_exhaustive]pub enum MetadataRecord {
Show 32 variants
V1Topic(TopicRecord),
V1Partition(PartitionRecord),
V1BrokerRegistration(BrokerRegistrationRecord),
V1DeleteTopic(DeleteTopicRecord),
V1TopicConfig(TopicConfigRecord),
V1ScramCredential(ScramCredentialRecord),
V1DeleteScramCredential(DeleteScramCredentialRecord),
V1AccessControlEntry(AclEntry),
V1DeleteAccessControlEntry(AclEntryFilter),
V1BrokerConfig(BrokerConfigRecord),
V1ClientQuota(ClientQuotaRecord),
V1ProducerIds(ProducerIdsRecord),
V1DelegationToken(DelegationTokenRecord),
V1DeleteDelegationToken(DeleteDelegationTokenRecord),
V1UnregisterBroker(UnregisterBrokerRecord),
V1KRaftVersion(KRaftVersionRecord),
V1Voters(VotersRecord),
V1FeatureLevel(FeatureLevelRecord),
V1ClientMetricsConfig(ClientMetricsConfigRecord),
V1FeaturesEpoch(FeaturesEpochRecord),
V1PartitionDirAssignment(PartitionDirAssignmentRecord),
V1PartitionOffsetAdvance(PartitionOffsetAdvanceRecord),
V1GroupConfig(GroupConfigRecord),
V1ControllerRegistration(ControllerRegistrationRecord),
V1TopicFreeze(TopicFreezeRecord),
V1BreakGlassProposal(BreakGlassProposalRecord),
V1DeleteBreakGlassProposal(Uuid),
V1PartitionElr(PartitionElrRecord),
V1PartitionRecovery(PartitionRecoveryRecord),
V1PartitionUpdate(PartitionUpdateRecord),
V1BrokerRegistrationChange(BrokerRegistrationChangeRecord),
V1UnregisterController(UnregisterControllerRecord),
}Expand description
The seed record type run_with_records accepts, re-exported so a caller
building a bootstrap stream does not have to name krabka_metadata
itself.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
V1Topic(TopicRecord)
V1Partition(PartitionRecord)
V1BrokerRegistration(BrokerRegistrationRecord)
V1DeleteTopic(DeleteTopicRecord)
V1TopicConfig(TopicConfigRecord)
V1ScramCredential(ScramCredentialRecord)
V1DeleteScramCredential(DeleteScramCredentialRecord)
V1AccessControlEntry(AclEntry)
V1DeleteAccessControlEntry(AclEntryFilter)
V1BrokerConfig(BrokerConfigRecord)
V1ClientQuota(ClientQuotaRecord)
V1ProducerIds(ProducerIdsRecord)
V1DelegationToken(DelegationTokenRecord)
V1DeleteDelegationToken(DeleteDelegationTokenRecord)
V1UnregisterBroker(UnregisterBrokerRecord)
V1KRaftVersion(KRaftVersionRecord)
V1Voters(VotersRecord)
V1FeatureLevel(FeatureLevelRecord)
V1ClientMetricsConfig(ClientMetricsConfigRecord)
V1FeaturesEpoch(FeaturesEpochRecord)
Snapshot-only: pins the finalized-features epoch on reconstruction.
Nothing submits it through the controller. See FeaturesEpochRecord.
V1PartitionDirAssignment(PartitionDirAssignmentRecord)
KIP-858 directory-assignment delta (see PartitionDirAssignmentRecord).
Applied as a merge into one replica’s directories slot; on the KRaft
log it rides a Krabka-private carrier so it stays a delta end-to-end.
V1PartitionOffsetAdvance(PartitionOffsetAdvanceRecord)
Diskless offset-sequencer delta (see PartitionOffsetAdvanceRecord).
Applied as an increment to the partition’s committed next-offset.
V1GroupConfig(GroupConfigRecord)
KIP-1071 dynamic GROUP resource configuration.
V1ControllerRegistration(ControllerRegistrationRecord)
KIP-919 controller registration.
V1TopicFreeze(TopicFreezeRecord)
One write-freeze registry entry (see
TopicFreezeRecord).
frozen: false removes the entry and is the thaw, so the registry
needs no separate tombstone record.
V1BreakGlassProposal(BreakGlassProposalRecord)
One break-glass proposal (see
BreakGlassProposalRecord).
Replacement semantics on proposal_id: an approval and a consumption
each write the whole record back.
V1DeleteBreakGlassProposal(Uuid)
Tombstone that removes a break-glass proposal by id. The expiry sweep
emits it, in the same shape as V1DeleteDelegationToken.
V1PartitionElr(PartitionElrRecord)
KIP-966 per-partition eligible-leader state.
V1PartitionRecovery(PartitionRecoveryRecord)
KIP-704 per-partition leader recovery state.
V1PartitionUpdate(PartitionUpdateRecord)
Atomic standard-KRaft partition update decoded from a combined delta.
V1BrokerRegistrationChange(BrokerRegistrationChangeRecord)
Kafka’s BrokerRegistrationChangeRecord: a fencing, controlled-shutdown
or log-dir delta on one broker registration, applied only at the
registration’s epoch.
V1UnregisterController(UnregisterControllerRecord)
KIP-1312 controller unregistration.
Trait Implementations§
Source§impl Clone for MetadataRecord
impl Clone for MetadataRecord
Source§fn clone(&self) -> MetadataRecord
fn clone(&self) -> MetadataRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetadataRecord
impl Debug for MetadataRecord
Source§impl<'de> Deserialize<'de> for MetadataRecord
impl<'de> Deserialize<'de> for MetadataRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MetadataRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MetadataRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for MetadataRecord
impl PartialEq for MetadataRecord
Source§impl Serialize for MetadataRecord
impl Serialize for MetadataRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for MetadataRecord
Auto Trait Implementations§
impl Freeze for MetadataRecord
impl RefUnwindSafe for MetadataRecord
impl Send for MetadataRecord
impl Sync for MetadataRecord
impl Unpin for MetadataRecord
impl UnsafeUnpin for MetadataRecord
impl UnwindSafe for MetadataRecord
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<F> FnGhost for F
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);