pub enum PacketRefMut<'a> {
Packet(&'a mut Packet),
Bytes(&'a mut BytesPacket),
}Variants§
Packet(&'a mut Packet)
Bytes(&'a mut BytesPacket)
Implementations§
Source§impl PacketRefMut<'_>
impl PacketRefMut<'_>
pub fn data<I>(&self, index: I) -> Option<&<I as SliceIndex<[u8]>>::Output>where
I: SliceIndex<[u8]>,
pub fn meta(&self) -> &Meta
pub fn meta_mut(&mut self) -> &mut Meta
pub fn deserialize_slice<T, I>(&self, index: I) -> Result<T, Box<ErrorKind>>
pub fn as_ref(&self) -> PacketRef<'_>
Trait Implementations§
Source§impl<'a> Debug for PacketRefMut<'a>
impl<'a> Debug for PacketRefMut<'a>
impl<'a> Eq for PacketRefMut<'a>
Source§impl<'a> From<&'a mut BytesPacket> for PacketRefMut<'a>
impl<'a> From<&'a mut BytesPacket> for PacketRefMut<'a>
Source§fn from(packet: &'a mut BytesPacket) -> PacketRefMut<'a>
fn from(packet: &'a mut BytesPacket) -> PacketRefMut<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a mut Packet> for PacketRefMut<'a>
impl<'a> From<&'a mut Packet> for PacketRefMut<'a>
Source§fn from(packet: &'a mut Packet) -> PacketRefMut<'a>
fn from(packet: &'a mut Packet) -> PacketRefMut<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !UnwindSafe for PacketRefMut<'a>
impl<'a> Freeze for PacketRefMut<'a>
impl<'a> RefUnwindSafe for PacketRefMut<'a>
impl<'a> Send for PacketRefMut<'a>
impl<'a> Sync for PacketRefMut<'a>
impl<'a> Unpin for PacketRefMut<'a>
impl<'a> UnsafeUnpin for PacketRefMut<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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