pub enum MaxTopicSize {
ServerDefault,
Custom(IggyByteSize),
Unlimited,
}Variants§
ServerDefault
Use the default size set by the server
Custom(IggyByteSize)
Use a custom size
Unlimited
Use an unlimited size
Implementations§
Source§impl MaxTopicSize
impl MaxTopicSize
pub fn new(value: Option<IggyByteSize>) -> Self
pub fn as_bytes_u64(&self) -> u64
Trait Implementations§
Source§impl Clone for MaxTopicSize
impl Clone for MaxTopicSize
Source§fn clone(&self) -> MaxTopicSize
fn clone(&self) -> MaxTopicSize
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 MaxTopicSize
impl Debug for MaxTopicSize
Source§impl Default for MaxTopicSize
impl Default for MaxTopicSize
Source§fn default() -> MaxTopicSize
fn default() -> MaxTopicSize
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MaxTopicSize
impl<'de> Deserialize<'de> for MaxTopicSize
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 Display for MaxTopicSize
impl Display for MaxTopicSize
Source§impl From<IggyByteSize> for MaxTopicSize
impl From<IggyByteSize> for MaxTopicSize
Source§fn from(value: IggyByteSize) -> Self
fn from(value: IggyByteSize) -> Self
Converts to this type from the input type.
Source§impl From<MaxTopicSize> for u64
impl From<MaxTopicSize> for u64
Source§fn from(value: MaxTopicSize) -> u64
fn from(value: MaxTopicSize) -> u64
Converts to this type from the input type.
Source§impl From<Option<IggyByteSize>> for MaxTopicSize
impl From<Option<IggyByteSize>> for MaxTopicSize
Source§fn from(value: Option<IggyByteSize>) -> Self
fn from(value: Option<IggyByteSize>) -> Self
Converts to this type from the input type.
Source§impl From<u64> for MaxTopicSize
impl From<u64> for MaxTopicSize
Source§impl FromStr for MaxTopicSize
impl FromStr for MaxTopicSize
Source§impl PartialEq for MaxTopicSize
impl PartialEq for MaxTopicSize
Source§impl Serialize for MaxTopicSize
impl Serialize for MaxTopicSize
impl Copy for MaxTopicSize
impl StructuralPartialEq for MaxTopicSize
Auto Trait Implementations§
impl Freeze for MaxTopicSize
impl RefUnwindSafe for MaxTopicSize
impl Send for MaxTopicSize
impl Sync for MaxTopicSize
impl Unpin for MaxTopicSize
impl UnsafeUnpin for MaxTopicSize
impl UnwindSafe for MaxTopicSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more