Struct tui_nodes::Connection
source · pub struct Connection {
pub from_node: usize,
pub from_port: usize,
pub to_node: usize,
pub to_port: usize,
/* private fields */
}Fields§
§from_node: usize§from_port: usize§to_node: usize§to_port: usizeImplementations§
source§impl Connection
impl Connection
pub fn new( from_node: usize, from_port: usize, to_node: usize, to_port: usize ) -> Self
pub fn with_border_type(self, border_type: BorderType) -> Self
pub fn border_type(&self) -> BorderType
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Connection
impl Debug for Connection
impl Copy for Connection
Auto Trait Implementations§
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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