pub struct IoK8sApiCoreV1TcpSocketAction {
pub host: Option<String>,
pub port: IoK8sApimachineryPkgUtilIntstrIntOrString,
}
Expand description
TCPSocketAction describes an action based on opening a socket
Fields§
§host: Option<String>
Optional: Host name to connect to, defaults to the pod IP.
port: IoK8sApimachineryPkgUtilIntstrIntOrString
Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1TcpSocketAction
impl Clone for IoK8sApiCoreV1TcpSocketAction
Source§fn clone(&self) -> IoK8sApiCoreV1TcpSocketAction
fn clone(&self) -> IoK8sApiCoreV1TcpSocketAction
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<'de> Deserialize<'de> for IoK8sApiCoreV1TcpSocketAction
impl<'de> Deserialize<'de> for IoK8sApiCoreV1TcpSocketAction
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 From<&IoK8sApiCoreV1TcpSocketAction> for IoK8sApiCoreV1TcpSocketAction
impl From<&IoK8sApiCoreV1TcpSocketAction> for IoK8sApiCoreV1TcpSocketAction
Source§fn from(value: &IoK8sApiCoreV1TcpSocketAction) -> Self
fn from(value: &IoK8sApiCoreV1TcpSocketAction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1TcpSocketAction
impl RefUnwindSafe for IoK8sApiCoreV1TcpSocketAction
impl Send for IoK8sApiCoreV1TcpSocketAction
impl Sync for IoK8sApiCoreV1TcpSocketAction
impl Unpin for IoK8sApiCoreV1TcpSocketAction
impl UnwindSafe for IoK8sApiCoreV1TcpSocketAction
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