Trait twitch_message::encode::Encode
source · pub trait Encode: Write {
fn encode_msg(&mut self, msg: impl Encodable) -> Result<()> { ... }
}
Available on crate feature
std
only.Expand description
A trait to encode a type onto this std::io::Write
Provided Methods§
sourcefn encode_msg(&mut self, msg: impl Encodable) -> Result<()>
fn encode_msg(&mut self, msg: impl Encodable) -> Result<()>
Encode the given type