[−][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_addr<A: ToSocketAddrs>(
addr: A,
domain: &str
) -> Result<SslExpiration>
[src]
addr: A,
domain: &str
) -> 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
impl Send for SslExpiration
impl Sync for SslExpiration
impl Unpin for SslExpiration
impl UnwindSafe for SslExpiration
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,
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.
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>,