[−][src]Struct ssl_expiration2::SslExpiration
Implementations
impl SslExpiration
[src]
pub fn from_domain_name(domain: &str) -> Result<SslExpiration>
[src]
Creates new SslExpiration from domain name.
This function will use HTTPS port (443) to check SSL certificate.
pub fn from_domain_name_with_timeout(
domain: &str,
timeout: u64
) -> Result<SslExpiration>
[src]
domain: &str,
timeout: u64
) -> Result<SslExpiration>
pub fn from_addr<A: ToSocketAddrs>(
addr: A,
domain: &str,
timeout: u64
) -> Result<SslExpiration>
[src]
addr: A,
domain: &str,
timeout: u64
) -> Result<SslExpiration>
Creates new SslExpiration from SocketAddr.
pub fn secs(&self) -> i32
[src]
How many seconds until SSL certificate expires.
This function will return minus if SSL certificate is already expired.
pub fn days(&self) -> i32
[src]
How many days until SSL certificate expires
This function will return minus if SSL certificate is already expired.
pub fn is_expired(&self) -> bool
[src]
Returns true if SSL certificate is expired
Auto Trait Implementations
impl RefUnwindSafe for SslExpiration
[src]
impl Send for SslExpiration
[src]
impl Sync for SslExpiration
[src]
impl Unpin for SslExpiration
[src]
impl UnwindSafe for SslExpiration
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,