Trait netstack3_ip::socket::DeviceIpSocketHandler
source · pub trait DeviceIpSocketHandler<I: IpExt, BC>: DeviceIdContext<AnyDevice> {
// Required method
fn get_mms<O: RouteResolutionOptions<I>>(
&mut self,
bindings_ctx: &mut BC,
ip_sock: &IpSock<I, Self::WeakDeviceId>,
options: &O,
) -> Result<Mms, MmsError>;
}
Expand description
Gets device related information of an IP socket.
Required Methods§
sourcefn get_mms<O: RouteResolutionOptions<I>>(
&mut self,
bindings_ctx: &mut BC,
ip_sock: &IpSock<I, Self::WeakDeviceId>,
options: &O,
) -> Result<Mms, MmsError>
fn get_mms<O: RouteResolutionOptions<I>>( &mut self, bindings_ctx: &mut BC, ip_sock: &IpSock<I, Self::WeakDeviceId>, options: &O, ) -> Result<Mms, MmsError>
Gets the maximum message size for the transport layer, it equals the device MTU minus the IP header size.
This corresponds to the GET_MAXSIZES call described in: https://www.rfc-editor.org/rfc/rfc1122#section-3.4
Object Safety§
This trait is not object safe.