Struct mysql_common::packets::PacketParser
source · pub struct PacketParser { /* private fields */ }
Expand description
Incremental packet parser.
Implementations
sourceimpl PacketParser
impl PacketParser
pub fn empty() -> PacketParser
sourcepub fn extend_from_slice(&mut self, src: &[u8])
pub fn extend_from_slice(&mut self, src: &[u8])
src.len()
should be equal to the length specified in the latest ParseResult::Incomplete
.
pub fn parse(self) -> ParseResult
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PacketParser
impl Send for PacketParser
impl Sync for PacketParser
impl Unpin for PacketParser
impl UnwindSafe for PacketParser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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