pub struct PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> {
pub destination_id: UnsignedByteField,
pub trans_mode: Option<TransmissionMode>,
pub closure_requested: Option<bool>,
pub seg_ctrl: Option<SegmentationControl>,
pub msgs_to_user: Option<&'msgs_to_user [Tlv<'msgs_to_user>]>,
pub fault_handler_overrides: Option<&'fh_ovrds [Tlv<'fh_ovrds>]>,
pub flow_label: Option<Tlv<'flow_label>>,
pub fs_requests: Option<&'fs_requests [Tlv<'fs_requests>]>,
/* private fields */
}
Fields§
§destination_id: UnsignedByteField
§trans_mode: Option<TransmissionMode>
§closure_requested: Option<bool>
§seg_ctrl: Option<SegmentationControl>
§msgs_to_user: Option<&'msgs_to_user [Tlv<'msgs_to_user>]>
§fault_handler_overrides: Option<&'fh_ovrds [Tlv<'fh_ovrds>]>
§flow_label: Option<Tlv<'flow_label>>
§fs_requests: Option<&'fs_requests [Tlv<'fs_requests>]>
Implementations§
Source§impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
pub fn new( destination_id: UnsignedByteField, source_file: Option<&'src_file str>, dest_file: Option<&'dest_file str>, trans_mode: Option<TransmissionMode>, closure_requested: Option<bool>, seg_ctrl: Option<SegmentationControl>, msgs_to_user: Option<&'msgs_to_user [Tlv<'msgs_to_user>]>, fault_handler_overrides: Option<&'fh_ovrds [Tlv<'fh_ovrds>]>, flow_label: Option<Tlv<'flow_label>>, fs_requests: Option<&'fs_requests [Tlv<'fs_requests>]>, ) -> Result<Self, FilePathTooLarge>
Source§impl<'src_file, 'dest_file> PutRequest<'src_file, 'dest_file, 'static, 'static, 'static, 'static>
impl<'src_file, 'dest_file> PutRequest<'src_file, 'dest_file, 'static, 'static, 'static, 'static>
pub fn new_regular_request( dest_id: UnsignedByteField, source_file: &'src_file str, dest_file: &'dest_file str, trans_mode: Option<TransmissionMode>, closure_requested: Option<bool>, ) -> Result<Self, FilePathTooLarge>
Source§impl<'msgs_to_user> PutRequest<'static, 'static, 'msgs_to_user, 'static, 'static, 'static>
impl<'msgs_to_user> PutRequest<'static, 'static, 'msgs_to_user, 'static, 'static, 'static>
pub fn new_msgs_to_user_only( dest_id: UnsignedByteField, msgs_to_user: &'msgs_to_user [Tlv<'msgs_to_user>], ) -> Result<Self, TlvWithInvalidType>
Sourcepub fn check_tlv_type_validities(&self) -> bool
pub fn check_tlv_type_validities(&self) -> bool
Uses generic_tlv_list_type_check to check the TLV type validity of all TLV fields.
Trait Implementations§
Source§impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> Debug for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> Debug for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
Source§impl From<PutRequest<'_, '_, '_, '_, '_, '_>> for PutRequestOwned
Available on crate feature alloc
only.
impl From<PutRequest<'_, '_, '_, '_, '_, '_>> for PutRequestOwned
Available on crate feature
alloc
only.Source§fn from(req: PutRequest<'_, '_, '_, '_, '_, '_>) -> Self
fn from(req: PutRequest<'_, '_, '_, '_, '_, '_>) -> Self
Converts to this type from the input type.
Source§impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> PartialEq for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> PartialEq for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
Source§fn eq(
&self,
other: &PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>,
) -> bool
fn eq( &self, other: &PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl ReadablePutRequest for PutRequest<'_, '_, '_, '_, '_, '_>
impl ReadablePutRequest for PutRequest<'_, '_, '_, '_, '_, '_>
fn destination_id(&self) -> UnsignedByteField
fn source_file(&self) -> Option<&str>
fn dest_file(&self) -> Option<&str>
fn trans_mode(&self) -> Option<TransmissionMode>
fn closure_requested(&self) -> Option<bool>
fn seg_ctrl(&self) -> Option<SegmentationControl>
fn msgs_to_user(&self) -> Option<impl Iterator<Item = Tlv<'_>>>
fn fault_handler_overrides(&self) -> Option<impl Iterator<Item = Tlv<'_>>>
fn flow_label(&self) -> Option<Tlv<'_>>
fn fs_requests(&self) -> Option<impl Iterator<Item = Tlv<'_>>>
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> Eq for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> StructuralPartialEq for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
Auto Trait Implementations§
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> Freeze for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> RefUnwindSafe for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> Send for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> Sync for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> Unpin for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
impl<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests> UnwindSafe for PutRequest<'src_file, 'dest_file, 'msgs_to_user, 'fh_ovrds, 'flow_label, 'fs_requests>
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.