pub struct MessageAssembler { /* private fields */ }Expand description
Message assembler for fragmented messages
Implementations§
Source§impl MessageAssembler
impl MessageAssembler
Sourcepub fn feed_frame(&mut self, frame: Frame) -> Result<Option<Message>>
pub fn feed_frame(&mut self, frame: Frame) -> Result<Option<Message>>
Feed a frame and try to assemble a complete message
Sourcepub fn is_assembling(&self) -> bool
pub fn is_assembling(&self) -> bool
Check if currently assembling a message
Sourcepub fn buffered_bytes(&self) -> usize
pub fn buffered_bytes(&self) -> usize
Get the number of bytes currently buffered
Trait Implementations§
Source§impl Debug for MessageAssembler
impl Debug for MessageAssembler
Source§impl Default for MessageAssembler
impl Default for MessageAssembler
Source§fn default() -> MessageAssembler
fn default() -> MessageAssembler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MessageAssembler
impl RefUnwindSafe for MessageAssembler
impl Send for MessageAssembler
impl Sync for MessageAssembler
impl Unpin for MessageAssembler
impl UnwindSafe for MessageAssembler
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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