pub struct ModificationResponseBuilder { /* private fields */ }Expand description
Gather up Modification actions to send to the milter client
Implementations§
source§impl ModificationResponseBuilder
impl ModificationResponseBuilder
sourcepub fn push<M: Into<ModificationAction>>(&mut self, mod_action: M)
pub fn push<M: Into<ModificationAction>>(&mut self, mod_action: M)
Push another modification action onto the builder
sourcepub fn abort(self) -> ModificationResponse
pub fn abort(self) -> ModificationResponse
Send the Abort command to the milter client
sourcepub fn contin(self) -> ModificationResponse
pub fn contin(self) -> ModificationResponse
Send a Continue command to the milter client with all set
modification responses.
sourcepub fn build<A: Into<Action>>(self, final_action: A) -> ModificationResponse
pub fn build<A: Into<Action>>(self, final_action: A) -> ModificationResponse
Finalize into a ModificationResponse with a final action
Trait Implementations§
source§impl Clone for ModificationResponseBuilder
impl Clone for ModificationResponseBuilder
source§fn clone(&self) -> ModificationResponseBuilder
fn clone(&self) -> ModificationResponseBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ModificationResponseBuilder
impl Send for ModificationResponseBuilder
impl Sync for ModificationResponseBuilder
impl Unpin for ModificationResponseBuilder
impl UnwindSafe for ModificationResponseBuilder
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