pub struct FrameIter { /* private fields */ }Expand description
Iterator over frames of a message.
Implementations§
Source§impl FrameIter
impl FrameIter
Sourcepub fn next_owned(
self,
max_frame_size: MaxFrameSize,
) -> (OutgoingFrame, Option<Self>)
pub fn next_owned( self, max_frame_size: MaxFrameSize, ) -> (OutgoingFrame, Option<Self>)
Returns the next frame to send.
Will return the next frame, and Some(self) if there are additional frames to send to
complete the message, None otherwise.
§Note
While different OutgoingMessages can have their send order mixed or interspersed, a
caller MUST NOT send OutgoingFrames of a single message in any order but the one
produced by this method. In other words, reorder messages, but not frames within a message.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FrameIter
impl RefUnwindSafe for FrameIter
impl Send for FrameIter
impl Sync for FrameIter
impl Unpin for FrameIter
impl UnwindSafe for FrameIter
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