pub struct SctpStateChangeNotificationBuilder<State>(/* private fields */);
Expand description
Builder for serializing an instance of the SctpStateChangeNotification type.
Can be created using the SctpStateChangeNotification::builder method.
Implementations§
Source§impl SctpStateChangeNotificationBuilder<()>
impl SctpStateChangeNotificationBuilder<()>
Sourcepub fn sctp_state<T0>(
self,
value: T0,
) -> SctpStateChangeNotificationBuilder<(T0,)>
pub fn sctp_state<T0>( self, value: T0, ) -> SctpStateChangeNotificationBuilder<(T0,)>
Setter for the sctp_state
field.
Sourcepub fn sctp_state_as_default(
self,
) -> SctpStateChangeNotificationBuilder<(DefaultValue,)>
pub fn sctp_state_as_default( self, ) -> SctpStateChangeNotificationBuilder<(DefaultValue,)>
Sets the sctp_state
field to the default value.
Source§impl<T0> SctpStateChangeNotificationBuilder<(T0,)>
impl<T0> SctpStateChangeNotificationBuilder<(T0,)>
Sourcepub fn finish(
self,
builder: &mut Builder,
) -> Offset<SctpStateChangeNotification>where
Self: WriteAsOffset<SctpStateChangeNotification>,
pub fn finish(
self,
builder: &mut Builder,
) -> Offset<SctpStateChangeNotification>where
Self: WriteAsOffset<SctpStateChangeNotification>,
Finish writing the builder to get an Offset to a serialized SctpStateChangeNotification.
Trait Implementations§
Source§impl<State: Debug> Debug for SctpStateChangeNotificationBuilder<State>
impl<State: Debug> Debug for SctpStateChangeNotificationBuilder<State>
impl<T0: WriteAsDefault<SctpState, SctpState>> WriteAs<Offset<SctpStateChangeNotification>> for SctpStateChangeNotificationBuilder<(T0,)>
impl<T0: WriteAsDefault<SctpState, SctpState>> WriteAsOffset<SctpStateChangeNotification> for SctpStateChangeNotificationBuilder<(T0,)>
impl<T0: WriteAsDefault<SctpState, SctpState>> WriteAsOptional<Offset<SctpStateChangeNotification>> for SctpStateChangeNotificationBuilder<(T0,)>
Auto Trait Implementations§
impl<State> Freeze for SctpStateChangeNotificationBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for SctpStateChangeNotificationBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for SctpStateChangeNotificationBuilder<State>where
State: Send,
impl<State> Sync for SctpStateChangeNotificationBuilder<State>where
State: Sync,
impl<State> Unpin for SctpStateChangeNotificationBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for SctpStateChangeNotificationBuilder<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