pub struct LineCodec;Expand description
行/CSV 编解码器:每行 device_id,metric,value(值优先按数字解析)
适合裸 TCP 上报的轻量文本设备。多行会产出多条消息,忽略空行。
Trait Implementations§
Auto Trait Implementations§
impl Forget for LineCodec
impl Freeze for LineCodec
impl Move for LineCodec
impl RefUnwindSafe for LineCodec
impl Send for LineCodec
impl Sync for LineCodec
impl Unpin for LineCodec
impl UnsafeUnpin for LineCodec
impl UnwindSafe for LineCodec
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