pub struct SendDataRequest {
pub interface_handle: u32,
pub timeout: u16,
pub items: Vec<CpfItem>,
}Expand description
Payload carried by SendRRData or SendUnitData encapsulation commands.
Fields§
§interface_handle: u32Encapsulation interface handle; zero for CIP.
timeout: u16Encapsulation timeout in seconds.
items: Vec<CpfItem>Common Packet Format items.
Implementations§
Source§impl SendDataRequest
impl SendDataRequest
Sourcepub fn unconnected(item_data: &[u8]) -> Self
pub fn unconnected(item_data: &[u8]) -> Self
Wraps an unconnected CIP message in the standard null-address/data items.
Trait Implementations§
Source§impl Clone for SendDataRequest
impl Clone for SendDataRequest
Source§fn clone(&self) -> SendDataRequest
fn clone(&self) -> SendDataRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SendDataRequest
impl Debug for SendDataRequest
Source§impl Decode for SendDataRequest
impl Decode for SendDataRequest
Source§impl Encode for SendDataRequest
impl Encode for SendDataRequest
impl Eq for SendDataRequest
Source§impl PartialEq for SendDataRequest
impl PartialEq for SendDataRequest
impl StructuralPartialEq for SendDataRequest
Auto Trait Implementations§
impl Freeze for SendDataRequest
impl RefUnwindSafe for SendDataRequest
impl Send for SendDataRequest
impl Sync for SendDataRequest
impl Unpin for SendDataRequest
impl UnsafeUnpin for SendDataRequest
impl UnwindSafe for SendDataRequest
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