pub struct Info<'a> {
pub domain: Option<&'a str>,
pub acc_hash: Option<&'a str>,
pub stream: &'a str,
pub consumer: &'a str,
pub stream_sequence: u64,
pub consumer_sequence: u64,
pub delivered: i64,
pub pending: u64,
pub published: OffsetDateTime,
pub token: Option<&'a str>,
}Expand description
Information about a received message
Fields
domain: Option<&'a str>Optional domain, present in servers post-ADR-15
acc_hash: Option<&'a str>Optional account hash, present in servers post-ADR-15
stream: &'a strThe stream name
consumer: &'a strThe consumer name
stream_sequence: u64The stream sequence number associated with this message
consumer_sequence: u64The consumer sequence number associated with this message
delivered: i64the number of messages known by the server to be delivered to this consumer
pending: u64the number of messages known by the server to be pending to this consumer
published: OffsetDateTimethe time that this message was received by the server from its publisher
token: Option<&'a str>Optional token, present in servers post-ADR-15
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Info<'a>
impl<'a> Send for Info<'a>
impl<'a> Sync for Info<'a>
impl<'a> Unpin for Info<'a>
impl<'a> UnwindSafe for Info<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more