pub struct CltuBindInvocation {
pub initiator_id: [u8; 64],
pub initiator_id_len: usize,
pub responder_id: [u8; 64],
pub responder_id_len: usize,
pub service_type: ServiceType,
pub version: u16,
pub credentials: Option<Credentials>,
}Expand description
CLTU Bind invocation PDU.
Fields§
§initiator_id: [u8; 64]Identifier of the initiator (client).
initiator_id_len: usizeLength of initiator_id.
responder_id: [u8; 64]Identifier of the responder (ground station).
responder_id_len: usizeLength of responder_id.
service_type: ServiceTypeService type (should be FCltu).
version: u16Protocol version number.
credentials: Option<Credentials>Optional authentication credentials.
Implementations§
Source§impl CltuBindInvocation
impl CltuBindInvocation
Sourcepub fn new(
initiator_id: &[u8],
responder_id: &[u8],
version: u16,
credentials: Option<Credentials>,
) -> Result<Self, SleError>
pub fn new( initiator_id: &[u8], responder_id: &[u8], version: u16, credentials: Option<Credentials>, ) -> Result<Self, SleError>
Creates a new CLTU bind invocation.
Sourcepub fn initiator_id(&self) -> &[u8] ⓘ
pub fn initiator_id(&self) -> &[u8] ⓘ
Returns the initiator identifier as a byte slice.
Sourcepub fn responder_id(&self) -> &[u8] ⓘ
pub fn responder_id(&self) -> &[u8] ⓘ
Returns the responder identifier as a byte slice.
Trait Implementations§
Source§impl Clone for CltuBindInvocation
impl Clone for CltuBindInvocation
Source§fn clone(&self) -> CltuBindInvocation
fn clone(&self) -> CltuBindInvocation
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 moreAuto Trait Implementations§
impl Freeze for CltuBindInvocation
impl RefUnwindSafe for CltuBindInvocation
impl Send for CltuBindInvocation
impl Sync for CltuBindInvocation
impl Unpin for CltuBindInvocation
impl UnsafeUnpin for CltuBindInvocation
impl UnwindSafe for CltuBindInvocation
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