pub enum DecodedFrame {
Chunk(Bytes),
EndOfMessage,
}Expand description
A decoded frame from the NETCONF codec.
Instead of returning complete messages, the decoder yields individual chunks as they arrive. This enables streaming: the reader task can forward chunks directly to consumers without buffering the entire message.
Variants§
Trait Implementations§
Source§impl Clone for DecodedFrame
impl Clone for DecodedFrame
Source§fn clone(&self) -> DecodedFrame
fn clone(&self) -> DecodedFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodedFrame
impl Debug for DecodedFrame
Source§impl PartialEq for DecodedFrame
impl PartialEq for DecodedFrame
impl Eq for DecodedFrame
impl StructuralPartialEq for DecodedFrame
Auto Trait Implementations§
impl !Freeze for DecodedFrame
impl RefUnwindSafe for DecodedFrame
impl Send for DecodedFrame
impl Sync for DecodedFrame
impl Unpin for DecodedFrame
impl UnsafeUnpin for DecodedFrame
impl UnwindSafe for DecodedFrame
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