pub enum LrcMode {
Stx,
Std,
Noext,
StxNoext,
}Expand description
Which framing bytes are folded into the LRC (base BASE):
LrcMode::Stx—STX + payload + ETXLrcMode::Std— payload onlyLrcMode::Noext—payload + ETXLrcMode::StxNoext—STX + payload
Serializes to the wire/JSON string union "stx" | "std" | "noext" | "stx_noext".
Variants§
Implementations§
Trait Implementations§
impl Copy for LrcMode
Source§impl<'de> Deserialize<'de> for LrcMode
impl<'de> Deserialize<'de> for LrcMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LrcMode
impl StructuralPartialEq for LrcMode
Auto Trait Implementations§
impl Freeze for LrcMode
impl RefUnwindSafe for LrcMode
impl Send for LrcMode
impl Sync for LrcMode
impl Unpin for LrcMode
impl UnsafeUnpin for LrcMode
impl UnwindSafe for LrcMode
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