pub enum FramingMode {
EndOfMessage,
Chunked,
}Expand description
Netconf defines 2 framing modes.
- Netconf 1.0 defines End of Message (EOM) in RFC 4742, where each message is followed by
the literal sequence
]]>]]>. For example,<rpc-reply message-id="1"><ok/></rpc-reply>]]>]]> - Netconf 1.1 defines Chunked in RFC 6242, where each message is sent with length-prefixed
chunks. The chunk starts with \n#{num_of_bytes_in_msg}\n. \n##\n defines end of message
for example
\n#28\n<rpc-reply><ok/></rpc-re\n#6\nply/>\n##\n
Variants§
EndOfMessage
NETCONF 1.0 (RFC 4742): messages terminated by ]]>]]
Chunked
NETCONF 1.1 (RFC 6242): length-prefixed chunked framing
Trait Implementations§
Source§impl Clone for FramingMode
impl Clone for FramingMode
Source§fn clone(&self) -> FramingMode
fn clone(&self) -> FramingMode
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 FramingMode
impl Debug for FramingMode
Source§impl PartialEq for FramingMode
impl PartialEq for FramingMode
impl Copy for FramingMode
impl Eq for FramingMode
impl StructuralPartialEq for FramingMode
Auto Trait Implementations§
impl Freeze for FramingMode
impl RefUnwindSafe for FramingMode
impl Send for FramingMode
impl Sync for FramingMode
impl Unpin for FramingMode
impl UnsafeUnpin for FramingMode
impl UnwindSafe for FramingMode
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