pub fn new(message_handler: &'a mut impl MessageHandler) -> Self {
        Self {
            message_handler,
            protocol: None,
        }
    }
/// Creates a new MilterBuilder with a given MessageHandler.
///
/// The MessageHandler is passed as a mutable borrow to allow the user of the milter to store
/// and use state inside the MessageHandler.
///
/// # Example
/// ```
/// use rmilter::milter_builder::MilterBuilder;
/// use rmilter::message_handler::MessageHandler;
///
/// struct MyHandler;
/// impl MessageHandler for MyHandler {}
///
/// let mut handler = MyHandler {};
///
/// let mut milter = MilterBuilder::new(&mut handler)
///     .build();
/// ```
Creates a new MilterBuilder with a given MessageHandler.
The MessageHandler is passed as a mutable borrow to allow the user of the milter to store
and use state inside the MessageHandler.
Creates a new MilterBuilder with a given MessageHandler . The MessageHandler is passed as a mutable borrow to allow the user of the milter to store and use state inside the MessageHandler .
pub fn new(message_handler: &'a mut impl MessageHandler) -> Self {
        Self {
            message_handler,
            protocol: None,
        }
    }
pub fn new ( message_handler : & ' a mut impl MessageHandler ) -> Self { Self { message_handler , protocol : None , } }
Creates a new MilterBuilder with a given MessageHandler.
Creates a new MilterBuilder with a given MessageHandler .
message_handler
&'a mut impl MessageHandler
message_handler
&'a mut impl MessageHandler
example
```
use rmilter::milter_builder::MilterBuilder;
use rmilter::message_handler::MessageHandler.

struct MyHandler;
impl MessageHandler for MyHandler {}

let mut handler = MyHandler {}.

let mut milter = MilterBuilder::new(&mut handler)
.build();
```
` ` ` use rmilter :: milter_builder :: MilterBuilder ; use rmilter :: message_handler :: MessageHandler . struct MyHandler ; impl MessageHandler for MyHandler {} let mut handler = MyHandler {} . let mut milter = MilterBuilder :: new ( &mut handler ) . build () ; ` ` `