pub struct CheckSSL();Implementations§
Source§impl CheckSSL
impl CheckSSL
Sourcepub fn from_domain(domain: &str) -> Result<Cert, Error>
pub fn from_domain(domain: &str) -> Result<Cert, Error>
Check ssl from domain with port 443
Example
use checkssl::CheckSSL;
match CheckSSL::from_domain("rust-lang.org") {
Ok(certificate) => {
// do something with certificate
assert!(certificate.server.is_valid);
}
Err(e) => {
// ssl invalid
eprintln!(e);
}
}Auto Trait Implementations§
impl Freeze for CheckSSL
impl RefUnwindSafe for CheckSSL
impl Send for CheckSSL
impl Sync for CheckSSL
impl Unpin for CheckSSL
impl UnwindSafe for CheckSSL
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