pub struct IcingaOptions {
pub address: Ipv4Addr,
pub port: u16,
pub credentials: Option<(String, String)>,
}
Fields§
§address: Ipv4Addr
§port: u16
§credentials: Option<(String, String)>
Implementations§
Source§impl IcingaOptions
impl IcingaOptions
pub fn new() -> Self
pub fn from_address(address: Ipv4Addr) -> Self
pub fn from_address_and_port(address: Ipv4Addr, port: u16) -> Self
pub fn with_credentials<S: ToString, T: ToString>( &mut self, user: S, password: T, ) -> &mut Self
Trait Implementations§
Source§impl Clone for IcingaOptions
impl Clone for IcingaOptions
Source§fn clone(&self) -> IcingaOptions
fn clone(&self) -> IcingaOptions
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 IcingaOptions
impl RefUnwindSafe for IcingaOptions
impl Send for IcingaOptions
impl Sync for IcingaOptions
impl Unpin for IcingaOptions
impl UnwindSafe for IcingaOptions
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