pub struct Consumer { /* fields omitted */ }
An opaque structure, capable of reading data from the queue
Obtains a contiguous slice of committed bytes. This slice may not
contain ALL available bytes, if the writer has wrapped around. The
remaining bytes will be available after all readable bytes are
released
Release a sequence of bytes from the buffer, allowing the space
to be used by later writes
If used
is larger than the given grant, this function will panic.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static