pub struct TupleBuilder<State>(/* private fields */);
Expand description
Builder for serializing an instance of the Tuple type.
Can be created using the Tuple::builder method.
Implementations§
Source§impl TupleBuilder<()>
impl TupleBuilder<()>
Sourcepub fn local_address<T0>(self, value: T0) -> TupleBuilder<(T0,)>
pub fn local_address<T0>(self, value: T0) -> TupleBuilder<(T0,)>
Setter for the local_address
field.
Source§impl<T0> TupleBuilder<(T0,)>
impl<T0> TupleBuilder<(T0,)>
Sourcepub fn local_port<T1>(self, value: T1) -> TupleBuilder<(T0, T1)>
pub fn local_port<T1>(self, value: T1) -> TupleBuilder<(T0, T1)>
Setter for the local_port
field.
Sourcepub fn local_port_as_default(self) -> TupleBuilder<(T0, DefaultValue)>
pub fn local_port_as_default(self) -> TupleBuilder<(T0, DefaultValue)>
Sets the local_port
field to the default value.
Source§impl<T0, T1> TupleBuilder<(T0, T1)>
impl<T0, T1> TupleBuilder<(T0, T1)>
Sourcepub fn remote_ip<T2>(self, value: T2) -> TupleBuilder<(T0, T1, T2)>
pub fn remote_ip<T2>(self, value: T2) -> TupleBuilder<(T0, T1, T2)>
Setter for the remote_ip
field.
Sourcepub fn remote_ip_as_null(self) -> TupleBuilder<(T0, T1, ())>
pub fn remote_ip_as_null(self) -> TupleBuilder<(T0, T1, ())>
Sets the remote_ip
field to null.
Source§impl<T0, T1, T2> TupleBuilder<(T0, T1, T2)>
impl<T0, T1, T2> TupleBuilder<(T0, T1, T2)>
Sourcepub fn remote_port<T3>(self, value: T3) -> TupleBuilder<(T0, T1, T2, T3)>
pub fn remote_port<T3>(self, value: T3) -> TupleBuilder<(T0, T1, T2, T3)>
Setter for the remote_port
field.
Sourcepub fn remote_port_as_default(self) -> TupleBuilder<(T0, T1, T2, DefaultValue)>
pub fn remote_port_as_default(self) -> TupleBuilder<(T0, T1, T2, DefaultValue)>
Sets the remote_port
field to the default value.
Source§impl<T0, T1, T2, T3> TupleBuilder<(T0, T1, T2, T3)>
impl<T0, T1, T2, T3> TupleBuilder<(T0, T1, T2, T3)>
Sourcepub fn protocol<T4>(self, value: T4) -> TupleBuilder<(T0, T1, T2, T3, T4)>
pub fn protocol<T4>(self, value: T4) -> TupleBuilder<(T0, T1, T2, T3, T4)>
Setter for the protocol
field.
Sourcepub fn protocol_as_default(self) -> TupleBuilder<(T0, T1, T2, T3, DefaultValue)>
pub fn protocol_as_default(self) -> TupleBuilder<(T0, T1, T2, T3, DefaultValue)>
Sets the protocol
field to the default value.
Source§impl<T0, T1, T2, T3, T4> TupleBuilder<(T0, T1, T2, T3, T4)>
impl<T0, T1, T2, T3, T4> TupleBuilder<(T0, T1, T2, T3, T4)>
Trait Implementations§
Source§impl<State: Debug> Debug for TupleBuilder<State>
impl<State: Debug> Debug for TupleBuilder<State>
impl<T0: WriteAs<Offset<str>>, T1: WriteAsDefault<u16, u16>, T2: WriteAsOptional<Offset<str>>, T3: WriteAsDefault<u16, u16>, T4: WriteAsDefault<Protocol, Protocol>> WriteAs<Offset<Tuple>> for TupleBuilder<(T0, T1, T2, T3, T4)>
impl<T0: WriteAs<Offset<str>>, T1: WriteAsDefault<u16, u16>, T2: WriteAsOptional<Offset<str>>, T3: WriteAsDefault<u16, u16>, T4: WriteAsDefault<Protocol, Protocol>> WriteAsOffset<Tuple> for TupleBuilder<(T0, T1, T2, T3, T4)>
impl<T0: WriteAs<Offset<str>>, T1: WriteAsDefault<u16, u16>, T2: WriteAsOptional<Offset<str>>, T3: WriteAsDefault<u16, u16>, T4: WriteAsDefault<Protocol, Protocol>> WriteAsOptional<Offset<Tuple>> for TupleBuilder<(T0, T1, T2, T3, T4)>
Auto Trait Implementations§
impl<State> Freeze for TupleBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for TupleBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for TupleBuilder<State>where
State: Send,
impl<State> Sync for TupleBuilder<State>where
State: Sync,
impl<State> Unpin for TupleBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for TupleBuilder<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