pub trait NetworkBoundaryExt {
// Required method
fn as_network_boundary(&self) -> Option<&dyn NetworkBoundary>;
// Provided method
fn is_network_boundary(&self) -> bool { ... }
}Expand description
Extension trait for downcasting dynamic types to NetworkBoundary.
Required Methods§
Sourcefn as_network_boundary(&self) -> Option<&dyn NetworkBoundary>
fn as_network_boundary(&self) -> Option<&dyn NetworkBoundary>
Downcasts self to a NetworkBoundary if possible.
Provided Methods§
Sourcefn is_network_boundary(&self) -> bool
fn is_network_boundary(&self) -> bool
Returns whether self is a NetworkBoundary or not.