pub fn absolute(index: i64) -> Result<Offset, FluvioError> {
        if index < 0 {
            return Err(FluvioError::NegativeOffset(index));
        }
        Ok(Self {
            inner: OffsetInner::Absolute(index),
        })
    }
/// Creates an absolute offset with the given index
///
/// The index must not be less than zero.
///
/// # Example
///
/// ```
/// # use fluvio::Offset;
/// assert!(Offset::absolute(100).is_ok());
/// assert!(Offset::absolute(0).is_ok());
/// assert!(Offset::absolute(-10).is_err());
/// ```
Creates an absolute offset with the given index
The index must not be less than zero.
Creates an absolute offset with the given index The index must not be less than zero .
pub fn absolute(index: i64) -> Result<Offset, FluvioError> {
        if index < 0 {
            return Err(FluvioError::NegativeOffset(index));
        }
        Ok(Self {
            inner: OffsetInner::Absolute(index),
        })
    }
pub fn absolute ( index : i64 ) -> Result < Offset , FluvioError > { if index < 0 { return Err ( FluvioError :: NegativeOffset ( index ) ) ; } Ok ( Self { inner : OffsetInner :: Absolute ( index ) , } ) }
Creates an absolute offset with the given index
The index must not be less than zero.
Creates an absolute offset with the given index The index must not be less than zero .
index
i64
index
i64
example
None
use fluvio::offset;
None