pub trait SocketMapAddrStateUpdateSharingSpec: SocketMapAddrStateSpec {
// Required method
fn try_update_sharing(
&mut self,
id: Self::Id,
new_sharing_state: &Self::SharingState,
) -> Result<(), IncompatibleError>;
}
Expand description
Provides behavior on updating the sharing state of a SocketMap
entry.
Required Methods§
sourcefn try_update_sharing(
&mut self,
id: Self::Id,
new_sharing_state: &Self::SharingState,
) -> Result<(), IncompatibleError>
fn try_update_sharing( &mut self, id: Self::Id, new_sharing_state: &Self::SharingState, ) -> Result<(), IncompatibleError>
Attempts to update the sharing state of the address state with id id
to new_sharing_state
.
Object Safety§
This trait is not object safe.