pub struct IpPortBuilder<State>(/* private fields */);
Expand description
Builder for serializing an instance of the IpPort type.
Can be created using the IpPort::builder method.
Implementations§
Source§impl IpPortBuilder<()>
impl IpPortBuilder<()>
Source§impl<T0> IpPortBuilder<(T0,)>
impl<T0> IpPortBuilder<(T0,)>
Sourcepub fn port<T1>(self, value: T1) -> IpPortBuilder<(T0, T1)>
pub fn port<T1>(self, value: T1) -> IpPortBuilder<(T0, T1)>
Setter for the port
field.
Sourcepub fn port_as_default(self) -> IpPortBuilder<(T0, DefaultValue)>
pub fn port_as_default(self) -> IpPortBuilder<(T0, DefaultValue)>
Sets the port
field to the default value.
Trait Implementations§
Source§impl<State: Debug> Debug for IpPortBuilder<State>
impl<State: Debug> Debug for IpPortBuilder<State>
impl<T0: WriteAs<Offset<str>>, T1: WriteAsDefault<u16, u16>> WriteAs<Offset<IpPort>> for IpPortBuilder<(T0, T1)>
impl<T0: WriteAs<Offset<str>>, T1: WriteAsDefault<u16, u16>> WriteAsOffset<IpPort> for IpPortBuilder<(T0, T1)>
impl<T0: WriteAs<Offset<str>>, T1: WriteAsDefault<u16, u16>> WriteAsOptional<Offset<IpPort>> for IpPortBuilder<(T0, T1)>
Auto Trait Implementations§
impl<State> Freeze for IpPortBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for IpPortBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for IpPortBuilder<State>where
State: Send,
impl<State> Sync for IpPortBuilder<State>where
State: Sync,
impl<State> Unpin for IpPortBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for IpPortBuilder<State>where
State: UnwindSafe,
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