pub struct RafBindInvocation {
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
RAF 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: ServiceTypeType of RAF service requested.
version: u16Protocol version number.
credentials: Option<Credentials>Optional authentication credentials.
Implementations§
Source§impl RafBindInvocation
impl RafBindInvocation
Sourcepub fn new(
initiator_id: &[u8],
responder_id: &[u8],
service_type: ServiceType,
version: u16,
credentials: Option<Credentials>,
) -> Result<Self, SleError>
pub fn new( initiator_id: &[u8], responder_id: &[u8], service_type: ServiceType, version: u16, credentials: Option<Credentials>, ) -> Result<Self, SleError>
Creates a new 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 RafBindInvocation
impl Clone for RafBindInvocation
Source§fn clone(&self) -> RafBindInvocation
fn clone(&self) -> RafBindInvocation
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 RafBindInvocation
impl RefUnwindSafe for RafBindInvocation
impl Send for RafBindInvocation
impl Sync for RafBindInvocation
impl Unpin for RafBindInvocation
impl UnsafeUnpin for RafBindInvocation
impl UnwindSafe for RafBindInvocation
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