pub struct ReadCursor<'a> { /* private fields */ }Expand description
A cursor over the unread bytes of a buffer, which advances the buffer as bytes are taken.
The cursor borrows the buffer’s bytes immutably and its read index exclusively. Bytes taken with
take therefore stay valid for the whole borrow, even after the cursor is dropped, and the buffer
can’t be written to, collapsed, or cleared until they’re gone. Taking bytes is the only way to get bytes that
outlive the cursor, so any such bytes have already been advanced past.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ReadCursor<'a>
impl<'a> RefUnwindSafe for ReadCursor<'a>
impl<'a> Send for ReadCursor<'a>
impl<'a> Sync for ReadCursor<'a>
impl<'a> Unpin for ReadCursor<'a>
impl<'a> UnsafeUnpin for ReadCursor<'a>
impl<'a> !UnwindSafe for ReadCursor<'a>
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Track for T
impl<T> Track for T
Source§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Instruments this type by attaching the given resource group token, returning a
Tracked wrapper. Read moreSource§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Instruments this type by attaching the current resource group, returning a
Tracked wrapper. Read more