pub trait NetworkMessageExt {
// Provided methods
fn is_reliable(&self) -> bool { ... }
fn is_express(&self) -> bool { ... }
fn congestion_control(&self) -> CongestionControl { ... }
fn is_droppable(&self) -> bool { ... }
fn priority(&self) -> Priority { ... }
fn wire_expr(&self) -> Option<&WireExpr<'_>> { ... }
fn payload_size(&self) -> Option<usize> { ... }
fn as_ref(&self) -> NetworkMessageRef<'_> { ... }
fn to_owned(&self) -> NetworkMessage { ... }
}Provided Methods§
fn is_reliable(&self) -> bool
fn is_express(&self) -> bool
fn congestion_control(&self) -> CongestionControl
fn is_droppable(&self) -> bool
fn priority(&self) -> Priority
fn wire_expr(&self) -> Option<&WireExpr<'_>>
fn payload_size(&self) -> Option<usize>
fn as_ref(&self) -> NetworkMessageRef<'_>
fn to_owned(&self) -> NetworkMessage
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".