Move the response to a dedicated file
This commit is contained in:
parent
eed8f88e2b
commit
1faa101778
2 changed files with 13 additions and 4 deletions
|
@ -10,6 +10,7 @@ mod entry;
|
||||||
mod errors;
|
mod errors;
|
||||||
mod event_handlers;
|
mod event_handlers;
|
||||||
mod logger;
|
mod logger;
|
||||||
|
mod response;
|
||||||
mod session_handler;
|
mod session_handler;
|
||||||
|
|
||||||
use crate::session_handler::SessionHandler;
|
use crate::session_handler::SessionHandler;
|
||||||
|
@ -24,6 +25,7 @@ pub use crate::entry::{Entry, Event};
|
||||||
pub use crate::errors::Error;
|
pub use crate::errors::Error;
|
||||||
pub use crate::event_handlers::{Callback, EventHandler, MatchEvent};
|
pub use crate::event_handlers::{Callback, EventHandler, MatchEvent};
|
||||||
pub use crate::logger::SmtpdLogger;
|
pub use crate::logger::SmtpdLogger;
|
||||||
|
pub use crate::response::Response;
|
||||||
pub use opensmtpd_derive::{event, report};
|
pub use opensmtpd_derive::{event, report};
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
@ -39,10 +41,6 @@ macro_rules! handlers {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum Response {
|
|
||||||
None,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Clone, Default)]
|
#[derive(Clone, Default)]
|
||||||
pub struct NoContext;
|
pub struct NoContext;
|
||||||
|
|
||||||
|
|
11
opensmtpd/src/response.rs
Normal file
11
opensmtpd/src/response.rs
Normal 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,
|
||||||
|
}
|
Reference in a new issue