pub enum BoundaryType {
Lower,
Upper,
}Expand description
Selects the lower or upper offset when timestamps map to a range.
Variants§
Implementations§
Source§impl BoundaryType
impl BoundaryType
Sourcepub fn get_name(&self) -> &'static str
pub fn get_name(&self) -> &'static str
Returns the lower-case boundary name used by RocketMQ APIs.
Sourcepub fn get_type(name: &str) -> BoundaryType
pub fn get_type(name: &str) -> BoundaryType
Parses a boundary name using the Java-compatible fallback behavior.
Values other than upper, matched without case sensitivity, resolve to
BoundaryType::Lower.
Trait Implementations§
Source§impl Clone for BoundaryType
impl Clone for BoundaryType
impl Copy for BoundaryType
Source§impl Debug for BoundaryType
impl Debug for BoundaryType
Source§impl Default for BoundaryType
impl Default for BoundaryType
Source§impl<'de> Deserialize<'de> for BoundaryType
impl<'de> Deserialize<'de> for BoundaryType
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 BoundaryType
impl Display for BoundaryType
impl Eq for BoundaryType
Source§impl FromStr for BoundaryType
impl FromStr for BoundaryType
Source§impl PartialEq for BoundaryType
impl PartialEq for BoundaryType
Source§impl Serialize for BoundaryType
impl Serialize for BoundaryType
impl StructuralPartialEq for BoundaryType
Auto Trait Implementations§
impl Freeze for BoundaryType
impl RefUnwindSafe for BoundaryType
impl Send for BoundaryType
impl Sync for BoundaryType
impl Unpin for BoundaryType
impl UnsafeUnpin for BoundaryType
impl UnwindSafe for BoundaryType
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