pub enum ConnectMode {
Tsap {
conn_type: ConnectionType,
local_tsap: u16,
remote_tsap: u16,
},
RackSlot {
conn_type: ConnectionType,
rack: u16,
slot: u16,
},
}
Variants§
Implementations§
Source§impl ConnectMode
impl ConnectMode
pub fn init_tsap( conn_type: ConnectionType, local_tsap: u16, remote_tsap: u16, ) -> Self
pub fn init_rack_slot(conn_type: ConnectionType, rack: u16, slot: u16) -> Self
pub fn conn_type(&self) -> &ConnectionType
pub fn local_tsap(&self) -> [u8; 2]
pub fn remote_tsap(&self) -> [u8; 2]
Trait Implementations§
Source§impl Clone for ConnectMode
impl Clone for ConnectMode
Source§fn clone(&self) -> ConnectMode
fn clone(&self) -> ConnectMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConnectMode
impl Debug for ConnectMode
Source§impl<'de> Deserialize<'de> for ConnectMode
impl<'de> Deserialize<'de> for ConnectMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConnectMode
impl RefUnwindSafe for ConnectMode
impl Send for ConnectMode
impl Sync for ConnectMode
impl Unpin for ConnectMode
impl UnwindSafe for ConnectMode
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