pub trait ServicePortExt {
    // Required methods
    fn new(name: impl ToString, port: i32) -> Self;
    fn target_port(self, port: impl ToIntOrString) -> Self;
    fn protocol(self, protocol: impl ToString) -> Self;

    // Provided methods
    fn udp(name: impl ToString, port: i32) -> Self
       where Self: Sized { ... }
    fn sctp(name: impl ToString, port: i32) -> Self
       where Self: Sized { ... }
}

Required Methods§

source

fn new(name: impl ToString, port: i32) -> Self

Construct new ServicePort

source

fn target_port(self, port: impl ToIntOrString) -> Self

Set targetPort

source

fn protocol(self, protocol: impl ToString) -> Self

Set protocol

Provided Methods§

source

fn udp(name: impl ToString, port: i32) -> Selfwhere Self: Sized,

Create UDP ServicePort

source

fn sctp(name: impl ToString, port: i32) -> Selfwhere Self: Sized,

Create SCTP ServicePort

Implementors§