Move replies to core
This commit is contained in:
parent
10efaeb8d2
commit
619e04c42a
4 changed files with 3 additions and 6 deletions
|
|
@ -5,6 +5,7 @@ mod id;
|
||||||
mod macros;
|
mod macros;
|
||||||
mod message;
|
mod message;
|
||||||
pub mod packets;
|
pub mod packets;
|
||||||
|
pub mod replies;
|
||||||
mod session;
|
mod session;
|
||||||
|
|
||||||
pub use self::id::*;
|
pub use self::id::*;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
// TODO Move this into core
|
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
use std::result;
|
use std::result;
|
||||||
|
|
@ -7,12 +7,11 @@ use cove_core::packets::{
|
||||||
Cmd, IdentifyCmd, IdentifyRpl, JoinNtf, NickNtf, NickRpl, Ntf, Packet, PartNtf, RoomCmd,
|
Cmd, IdentifyCmd, IdentifyRpl, JoinNtf, NickNtf, NickRpl, Ntf, Packet, PartNtf, RoomCmd,
|
||||||
RoomRpl, Rpl, SendNtf, SendRpl, WhoRpl,
|
RoomRpl, Rpl, SendNtf, SendRpl, WhoRpl,
|
||||||
};
|
};
|
||||||
use cove_core::{Session, SessionId};
|
use cove_core::replies::Replies;
|
||||||
|
use cove_core::{replies, Session, SessionId};
|
||||||
use tokio::sync::mpsc::UnboundedSender;
|
use tokio::sync::mpsc::UnboundedSender;
|
||||||
use tokio::sync::Mutex;
|
use tokio::sync::Mutex;
|
||||||
|
|
||||||
use crate::replies::{self, Replies};
|
|
||||||
|
|
||||||
// TODO Split into "interacting" and "maintenance" parts?
|
// TODO Split into "interacting" and "maintenance" parts?
|
||||||
#[derive(Debug, thiserror::Error)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
mod config;
|
mod config;
|
||||||
mod cove;
|
mod cove;
|
||||||
mod never;
|
mod never;
|
||||||
mod replies;
|
|
||||||
mod ui;
|
mod ui;
|
||||||
|
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue