pub struct CotpProtocolInformation { /* private fields */ }Expand description
Captures information about a COTP connection allowing it to be used later for connection negotiation.
Implementations§
Source§impl CotpProtocolInformation
impl CotpProtocolInformation
Sourcepub fn initiator(
calling_tsap_id: Option<Vec<u8>>,
called_tsap_id: Option<Vec<u8>>,
) -> Self
pub fn initiator( calling_tsap_id: Option<Vec<u8>>, called_tsap_id: Option<Vec<u8>>, ) -> Self
Used to specify information used by the COTP service during the initiator phase. This generates a random initiator and set the responder reference to 0.
Sourcepub fn responder(self) -> Self
pub fn responder(self) -> Self
Convert initiator information received by a connection request to responder information. This generates a random responder reference.
pub fn initiator_reference(&self) -> u16
Sourcepub fn responder_reference(&self) -> u16
pub fn responder_reference(&self) -> u16
This will be 0 for information received from the initiator.
pub fn calling_tsap_id(&self) -> Option<&Vec<u8>>
pub fn called_tsap_id(&self) -> Option<&Vec<u8>>
Trait Implementations§
Source§impl Clone for CotpProtocolInformation
impl Clone for CotpProtocolInformation
Source§fn clone(&self) -> CotpProtocolInformation
fn clone(&self) -> CotpProtocolInformation
Returns a duplicate 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 CotpProtocolInformation
impl Debug for CotpProtocolInformation
Source§impl PartialEq for CotpProtocolInformation
impl PartialEq for CotpProtocolInformation
impl ProtocolInformation for CotpProtocolInformation
impl StructuralPartialEq for CotpProtocolInformation
Auto Trait Implementations§
impl Freeze for CotpProtocolInformation
impl RefUnwindSafe for CotpProtocolInformation
impl Send for CotpProtocolInformation
impl Sync for CotpProtocolInformation
impl Unpin for CotpProtocolInformation
impl UnsafeUnpin for CotpProtocolInformation
impl UnwindSafe for CotpProtocolInformation
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