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 duplicate 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 Freeze for ModificationResponseBuilder
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