pub fn default_route_preference(&self) -> Option<RoutePreference> {
        if self.0.mDefaultRoute() {
            Some(RoutePreference::from_i32(self.0.mPreference()).expect("Invalid route preference"))
        } else {
            None
        }
    }
/// Returns the routing preference for this `BorderRouterConfig`.
/// If this config is not a default route, returns `None`.
Returns the routing preference for this `BorderRouterConfig`.
If this config is not a default route, returns `None`.
Returns the routing preference for this ` BorderRouterConfig ` . If this config is not a default route returns ` None ` .
pub fn default_route_preference(&self) -> Option<RoutePreference> {
        if self.0.mDefaultRoute() {
            Some(RoutePreference::from_i32(self.0.mPreference()).expect("Invalid route preference"))
        } else {
            None
        }
    }
pub fn default_route_preference ( & self ) -> Option < RoutePreference > { if self . 0 . mDefaultRoute ( ) { Some ( RoutePreference :: from_i32 ( self . 0 . mPreference ( ) ) . expect ( " " ) ) } else { None } }
Returns the routing preference for this `BorderRouterConfig`.
Returns the routing preference for this ` BorderRouterConfig ` .
&self
&self