pub struct TopicOverflowConfig {
pub policy: TopicOverflowPolicy,
pub size: NonZeroU32,
}Fields§
§policy: TopicOverflowPolicy§size: NonZeroU32Implementations§
Source§impl TopicOverflowConfig
impl TopicOverflowConfig
pub fn size(&self) -> usize
pub fn new_reject_new(size: u32) -> Self
pub fn new_drop_old(size: u32) -> Self
Trait Implementations§
Source§impl Clone for TopicOverflowConfig
impl Clone for TopicOverflowConfig
Source§fn clone(&self) -> TopicOverflowConfig
fn clone(&self) -> TopicOverflowConfig
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 moreSource§impl Debug for TopicOverflowConfig
impl Debug for TopicOverflowConfig
Source§impl<'de> Deserialize<'de> for TopicOverflowConfig
impl<'de> Deserialize<'de> for TopicOverflowConfig
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
Auto Trait Implementations§
impl Freeze for TopicOverflowConfig
impl RefUnwindSafe for TopicOverflowConfig
impl Send for TopicOverflowConfig
impl Sync for TopicOverflowConfig
impl Unpin for TopicOverflowConfig
impl UnsafeUnpin for TopicOverflowConfig
impl UnwindSafe for TopicOverflowConfig
Blanket Implementations§
impl<T> AppData for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
impl<T> AppDataResponse for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
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