Enum qapi_qmp::SocketAddress
source · [−]pub enum SocketAddress {
fd(String),
inet(InetSocketAddress),
unix(UnixSocketAddress),
vsock(VsockSocketAddress),
}Variants
fd(String)
inet(InetSocketAddress)
unix(UnixSocketAddress)
vsock(VsockSocketAddress)
Implementations
sourceimpl SocketAddress
impl SocketAddress
pub fn type_(&self) -> SocketAddressType
Trait Implementations
sourceimpl Clone for SocketAddress
impl Clone for SocketAddress
sourcefn clone(&self) -> SocketAddress
fn clone(&self) -> SocketAddress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SocketAddress
impl Debug for SocketAddress
sourceimpl<'de> Deserialize<'de> for SocketAddress
impl<'de> Deserialize<'de> for SocketAddress
sourcefn 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
sourceimpl From<InetSocketAddress> for SocketAddress
impl From<InetSocketAddress> for SocketAddress
sourcefn from(val: InetSocketAddress) -> Self
fn from(val: InetSocketAddress) -> Self
Converts to this type from the input type.
sourceimpl From<String> for SocketAddress
impl From<String> for SocketAddress
sourceimpl From<UnixSocketAddress> for SocketAddress
impl From<UnixSocketAddress> for SocketAddress
sourcefn from(val: UnixSocketAddress) -> Self
fn from(val: UnixSocketAddress) -> Self
Converts to this type from the input type.
sourceimpl From<VsockSocketAddress> for SocketAddress
impl From<VsockSocketAddress> for SocketAddress
sourcefn from(val: VsockSocketAddress) -> Self
fn from(val: VsockSocketAddress) -> Self
Converts to this type from the input type.
sourceimpl Serialize for SocketAddress
impl Serialize for SocketAddress
Auto Trait Implementations
impl RefUnwindSafe for SocketAddress
impl Send for SocketAddress
impl Sync for SocketAddress
impl Unpin for SocketAddress
impl UnwindSafe for SocketAddress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more