pub struct Route { /* private fields */ }Implementations§
source§impl Route
impl Route
pub fn from(route_key: RouteKey, metric: u8, rtt: u32) -> Self
pub fn from_default_rt(route_key: RouteKey, metric: u8) -> Self
pub fn route_key(&self) -> RouteKey
pub fn sort_key(&self) -> RouteSortKey
pub fn is_direct(&self) -> bool
pub fn is_relay(&self) -> bool
pub fn rtt(&self) -> u32
pub fn metric(&self) -> u8
Trait Implementations§
impl Copy for Route
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)