Move the response to a dedicated file

This commit is contained in:
Rodolphe Breard 2019-07-11 12:25:51 +02:00
parent eed8f88e2b
commit 1faa101778
2 changed files with 13 additions and 4 deletions

View file

@ -10,6 +10,7 @@ mod entry;
mod errors;
mod event_handlers;
mod logger;
mod response;
mod session_handler;
use crate::session_handler::SessionHandler;
@ -24,6 +25,7 @@ pub use crate::entry::{Entry, Event};
pub use crate::errors::Error;
pub use crate::event_handlers::{Callback, EventHandler, MatchEvent};
pub use crate::logger::SmtpdLogger;
pub use crate::response::Response;
pub use opensmtpd_derive::{event, report};
#[macro_export]
@ -39,10 +41,6 @@ macro_rules! handlers {
};
}
pub enum Response {
None,
}
#[derive(Clone, Default)]
pub struct NoContext;

11
opensmtpd/src/response.rs Normal file
View file

@ -0,0 +1,11 @@
// Copyright (c) 2019 Rodolphe Bréard
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub enum Response {
None,
}