#[non_exhaustive]pub struct ForgottenTopic {
pub topic: String,
pub topic_id: [u8; 16],
pub partitions: Vec<i32>,
pub unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
ForgottenTopic (nested in FetchRequest).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.topic: StringThe topic name.
topic_id: [u8; 16]The unique topic ID.
partitions: Vec<i32>The partitions indexes to forget.
unknown_tagged_fields: Vec<RawTaggedField>Tagged fields not (yet) known to this crate, kept raw.
Implementations§
Source§impl ForgottenTopic
impl ForgottenTopic
Sourcepub fn encode(
&self,
buf: &mut impl BufMut,
version: i16,
) -> Result<(), EncodeError>
pub fn encode( &self, buf: &mut impl BufMut, version: i16, ) -> Result<(), EncodeError>
Encode this ForgottenTopic at version.
Sourcepub fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
pub fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
Decode one ForgottenTopic, bounding allocation by the default
Limits derived from buf’s remaining length.
Sourcepub fn decode_with_limits(
buf: &mut impl Buf,
version: i16,
limits: Limits,
) -> Result<Self, DecodeError>
pub fn decode_with_limits( buf: &mut impl Buf, version: i16, limits: Limits, ) -> Result<Self, DecodeError>
Decode one ForgottenTopic under limits.
Sourcepub fn decode_with_budget(
buf: &mut impl Buf,
version: i16,
budget: &mut Budget,
) -> Result<Self, DecodeError>
pub fn decode_with_budget( buf: &mut impl Buf, version: i16, budget: &mut Budget, ) -> Result<Self, DecodeError>
Decode one ForgottenTopic against an existing budget.
Trait Implementations§
Source§impl Clone for ForgottenTopic
impl Clone for ForgottenTopic
Source§impl Debug for ForgottenTopic
impl Debug for ForgottenTopic
Source§impl Default for ForgottenTopic
impl Default for ForgottenTopic
Source§impl PartialEq for ForgottenTopic
impl PartialEq for ForgottenTopic
impl StructuralPartialEq for ForgottenTopic
Auto Trait Implementations§
impl Forget for ForgottenTopic
impl Freeze for ForgottenTopic
impl Move for ForgottenTopic
impl RefUnwindSafe for ForgottenTopic
impl Send for ForgottenTopic
impl Sync for ForgottenTopic
impl Unpin for ForgottenTopic
impl UnsafeUnpin for ForgottenTopic
impl UnwindSafe for ForgottenTopic
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