netstack3_base::socket

Trait SocketMapAddrStateUpdateSharingSpec

Source
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§

Source

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§