irc-rs:Rust的IRC库

时间:2024-05-31 05:30:14
【文件属性】:

文件名称:irc-rs:Rust的IRC库

文件大小:50KB

文件格式:ZIP

更新时间:2024-05-31 05:30:14

Rust

IRC-rs Rust的IRC库 用法 序列化和反序列化 extern crate irc; use irc :: protocol :: {Message, Body, IrcMessage}; use irc :: protocol :: command :: PrivmsgCommand; fn main () { let data = ":abc!abc@example.com PRIVMSG #rust :Ok, thanks guys. :)" ; let parsed_msg = Message :: from_str (data). unwrap (); let privmsg = PrivmsgCommand :: new ( "#rust" , "Ok, thanks guys. :)" ); let expected_msg = Me


【文件预览】:
irc-rs-master
----.travis.yml(77B)
----LICENSE(1KB)
----src()
--------protocol()
--------lib.rs(70B)
----Cargo.toml(203B)
----examples()
--------rustirc.rs(6KB)
--------serialize_deserialize.rs(497B)
----.gitignore(18B)
----README.md(1001B)

网友评论