Struct spf_milter::CliOptions
source · pub struct CliOptions { /* private fields */ }
Expand description
A set of CLI options.
Implementations§
source§impl CliOptions
impl CliOptions
pub fn builder() -> CliOptionsBuilder
pub fn config_file(&self) -> &Path
pub fn dry_run(&self) -> bool
pub fn log_destination(&self) -> Option<LogDestination>
pub fn log_level(&self) -> Option<LogLevel>
pub fn socket(&self) -> Option<&Socket>
pub fn syslog_facility(&self) -> Option<SyslogFacility>
Trait Implementations§
source§impl Clone for CliOptions
impl Clone for CliOptions
source§fn clone(&self) -> CliOptions
fn clone(&self) -> CliOptions
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 moresource§impl Debug for CliOptions
impl Debug for CliOptions
source§impl Default for CliOptions
impl Default for CliOptions
source§impl PartialEq<CliOptions> for CliOptions
impl PartialEq<CliOptions> for CliOptions
source§fn eq(&self, other: &CliOptions) -> bool
fn eq(&self, other: &CliOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CliOptions
impl StructuralEq for CliOptions
impl StructuralPartialEq for CliOptions
Auto Trait Implementations§
impl RefUnwindSafe for CliOptions
impl Send for CliOptions
impl Sync for CliOptions
impl Unpin for CliOptions
impl UnwindSafe for CliOptions
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
§fn try_octets_into(
self
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
§fn octets_into(self) -> Targetwhere
Self::Error: Into<Infallible>,
fn octets_into(self) -> Targetwhere Self::Error: Into<Infallible>,
Performs an infallible conversion.