Enum tss_esapi::tcti_ldr::ServerAddress
source · pub enum ServerAddress {
Ip(IpAddr),
Hostname(String),
}
Expand description
Address of a TPM server
The default value is localhost
Variants§
Ip(IpAddr)
IPv4 or IPv6 address
Hostname(String)
Hostname
The string is checked for compatibility with DNS hostnames before the context is created
Trait Implementations§
source§impl Clone for ServerAddress
impl Clone for ServerAddress
source§fn clone(&self) -> ServerAddress
fn clone(&self) -> ServerAddress
Returns a copy 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 ServerAddress
impl Debug for ServerAddress
source§impl Default for ServerAddress
impl Default for ServerAddress
source§impl Display for ServerAddress
impl Display for ServerAddress
source§impl FromStr for ServerAddress
impl FromStr for ServerAddress
source§impl PartialEq for ServerAddress
impl PartialEq for ServerAddress
source§fn eq(&self, other: &ServerAddress) -> bool
fn eq(&self, other: &ServerAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ServerAddress
impl StructuralPartialEq for ServerAddress
Auto Trait Implementations§
impl Freeze for ServerAddress
impl RefUnwindSafe for ServerAddress
impl Send for ServerAddress
impl Sync for ServerAddress
impl Unpin for ServerAddress
impl UnwindSafe for ServerAddress
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