pub struct ProtocolV2Reader<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ProtocolV2Reader<'a>
impl<'a> ProtocolV2Reader<'a>
pub fn new(msg_buffer: &'a [u8]) -> ProtocolV2Reader<'a>
pub fn msg_type(&self) -> Option<MsgType>
pub fn version() -> u16
pub fn conn_id(&self) -> i64
pub fn msg_body_without_vrs(&self) -> &'a [u8] ⓘ
pub fn msg_body_with_vrs(&self) -> &'a [u8] ⓘ
pub fn sender(&self) -> ServiceKey
pub fn receiver(&self) -> ServiceKey
pub fn api(&self) -> Result<String, Status>
Auto Trait Implementations§
impl<'a> Freeze for ProtocolV2Reader<'a>
impl<'a> RefUnwindSafe for ProtocolV2Reader<'a>
impl<'a> Send for ProtocolV2Reader<'a>
impl<'a> Sync for ProtocolV2Reader<'a>
impl<'a> Unpin for ProtocolV2Reader<'a>
impl<'a> UnwindSafe for ProtocolV2Reader<'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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more