pub struct TopicLocator {
pub version: u8,
pub pool: String,
pub topic: String,
pub num_partitions: u32,
pub partition_stride: u32,
pub partition_capacity: u32,
pub partition_lease_ids: Vec<u128>,
}Expand description
A locator describing a topic’s partition layout for cross-application discovery.
Fields§
§version: u8Schema version for this locator type.
pool: StringPool name.
topic: StringTopic name.
num_partitions: u32Number of partitions.
partition_stride: u32Partition stride (slot size in bytes).
partition_capacity: u32Partition capacity (number of slots per partition).
partition_lease_ids: Vec<u128>Lease IDs for each partition’s backing memory.
Implementations§
Trait Implementations§
Source§impl Clone for TopicLocator
impl Clone for TopicLocator
Source§fn clone(&self) -> TopicLocator
fn clone(&self) -> TopicLocator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TopicLocator
impl Debug for TopicLocator
Source§impl<'de> Deserialize<'de> for TopicLocator
impl<'de> Deserialize<'de> for TopicLocator
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 PartialEq for TopicLocator
impl PartialEq for TopicLocator
Source§impl Serialize for TopicLocator
impl Serialize for TopicLocator
impl StructuralPartialEq for TopicLocator
Auto Trait Implementations§
impl Freeze for TopicLocator
impl RefUnwindSafe for TopicLocator
impl Send for TopicLocator
impl Sync for TopicLocator
impl Unpin for TopicLocator
impl UnwindSafe for TopicLocator
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