pub struct Config {
pub max_connections: usize,
pub actions: Actions,
pub connection_timeout: Duration,
}Expand description
Milter configuration.
Fields§
§max_connections: usizeThe maximum number of connections open at any time.
The default is 100.
actions: ActionsActions to enable during the eom stage.
This setting is overridden by the actions requested through
NegotiateContext::requested_actions
in the negotiate stage.
The default is empty.
connection_timeout: DurationThe connection timeout duration.
This timeout concerns reading/writing of entire milter protocol messages to the connection. This limit would be reached eg when a milter client idles and does not send the next command. When the timeout expires the client’s connection is closed.
See also Postfix’s milter_*_timeout parameters.
The default is 7210 seconds.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more