Lines Matching refs:ConnectionRole
13 pub enum ConnectionRole { enum
35 impl fmt::Display for ConnectionRole { implementation
38 ConnectionRole::Active => CONNECTION_ROLE_ACTIVE_STR, in fmt()
39 ConnectionRole::Passive => CONNECTION_ROLE_PASSIVE_STR, in fmt()
40 ConnectionRole::Actpass => CONNECTION_ROLE_ACTPASS_STR, in fmt()
41 ConnectionRole::Holdconn => CONNECTION_ROLE_HOLDCONN_STR, in fmt()
48 impl From<u8> for ConnectionRole { implementation
51 1 => ConnectionRole::Active, in from()
52 2 => ConnectionRole::Passive, in from()
53 3 => ConnectionRole::Actpass, in from()
54 4 => ConnectionRole::Holdconn, in from()
55 _ => ConnectionRole::Unspecified, in from()
60 impl From<&str> for ConnectionRole { implementation
63 CONNECTION_ROLE_ACTIVE_STR => ConnectionRole::Active, in from()
64 CONNECTION_ROLE_PASSIVE_STR => ConnectionRole::Passive, in from()
65 CONNECTION_ROLE_ACTPASS_STR => ConnectionRole::Actpass, in from()
66 CONNECTION_ROLE_HOLDCONN_STR => ConnectionRole::Holdconn, in from()
67 _ => ConnectionRole::Unspecified, in from()