pub struct AddCertificate {
    pub address: SocketAddress,
    pub certificate: CertificateAndKey,
    pub expired_at: Option<i64>,
}Expand description
Add a new TLS certificate to an HTTPs listener
Fields§
§address: SocketAddress§certificate: CertificateAndKey§expired_at: Option<i64>A unix timestamp. Overrides certificate expiration.
Implementations§
Source§impl AddCertificate
 
impl AddCertificate
Sourcepub fn expired_at(&self) -> i64
 
pub fn expired_at(&self) -> i64
Returns the value of expired_at, or the default value if expired_at is unset.
Trait Implementations§
Source§impl Clone for AddCertificate
 
impl Clone for AddCertificate
Source§fn clone(&self) -> AddCertificate
 
fn clone(&self) -> AddCertificate
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 moreSource§impl Debug for AddCertificate
 
impl Debug for AddCertificate
Source§impl Default for AddCertificate
 
impl Default for AddCertificate
Source§impl<'de> Deserialize<'de> for AddCertificate
 
impl<'de> Deserialize<'de> for AddCertificate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AddCertificate
 
impl Hash for AddCertificate
Source§impl Message for AddCertificate
 
impl Message for AddCertificate
Source§fn encoded_len(&self) -> usize
 
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
    Self: Sized,
 
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
    Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
 
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
    &self,
    buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
    Self: Sized,
 
fn encode_length_delimited(
    &self,
    buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
    Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
 
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,
 
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,
 
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,
 
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,
Decodes an instance of the message from a buffer, and merges it into 
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,
 
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into 
self.Source§impl Ord for AddCertificate
 
impl Ord for AddCertificate
Source§fn cmp(&self, other: &AddCertificate) -> Ordering
 
fn cmp(&self, other: &AddCertificate) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AddCertificate
 
impl PartialEq for AddCertificate
Source§impl PartialOrd for AddCertificate
 
impl PartialOrd for AddCertificate
Source§impl Serialize for AddCertificate
 
impl Serialize for AddCertificate
impl Eq for AddCertificate
impl StructuralPartialEq for AddCertificate
Auto Trait Implementations§
impl Freeze for AddCertificate
impl RefUnwindSafe for AddCertificate
impl Send for AddCertificate
impl Sync for AddCertificate
impl Unpin for AddCertificate
impl UnwindSafe for AddCertificate
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
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