pub struct spf_matrix_t { /* private fields */ }
Implementations§
Source§impl spf_matrix_t
impl spf_matrix_t
pub fn new() -> Self
pub fn add_node(&mut self, node_id: u32) -> RESULT
pub fn delete_node(&mut self, node_id: u32) -> RESULT
pub fn AddEdge( &mut self, src_node_id: u32, srcPort: u32, dst_node_id: u32, dstPort: u32, metric: u16, ) -> RESULT
pub fn DeleteEdge( &mut self, src_node_id: u32, srcPort: u32, dst_node_id: u32, dstPort: u32, ) -> RESULT
pub fn UpdateEdge( &mut self, src_node_id: u32, srcPort: u32, dst_node_id: u32, dstPort: u32, metric: u16, ) -> RESULT
pub fn CalcOneSrcPath(&mut self, src_node_id: u32) -> RESULT
pub fn get_spf_path( &mut self, src_node_id: u32, dst_node_id: u32, ) -> Option<Vec<path_node_t>>
pub fn calc_all_path(&mut self) -> RESULT
pub fn print_stats(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for spf_matrix_t
impl RefUnwindSafe for spf_matrix_t
impl !Send for spf_matrix_t
impl !Sync for spf_matrix_t
impl Unpin for spf_matrix_t
impl UnwindSafe for spf_matrix_t
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