Struct cfdp::request::alloc_mod::PutRequestOwned
source · pub struct PutRequestOwned {
pub destination_id: UnsignedByteField,
pub trans_mode: Option<TransmissionMode>,
pub closure_requested: Option<bool>,
pub seg_ctrl: Option<SegmentationControl>,
pub msgs_to_user: Option<Vec<TlvOwned>>,
pub fault_handler_overrides: Option<Vec<TlvOwned>>,
pub flow_label: Option<TlvOwned>,
pub fs_requests: Option<Vec<TlvOwned>>,
/* private fields */
}Available on crate feature
alloc only.Expand description
Owned variant of PutRequest with no lifetimes which is also Cloneable.
Fields§
§destination_id: UnsignedByteField§trans_mode: Option<TransmissionMode>§closure_requested: Option<bool>§seg_ctrl: Option<SegmentationControl>§msgs_to_user: Option<Vec<TlvOwned>>§fault_handler_overrides: Option<Vec<TlvOwned>>§flow_label: Option<TlvOwned>§fs_requests: Option<Vec<TlvOwned>>Implementations§
source§impl PutRequestOwned
impl PutRequestOwned
pub fn new_regular_request( dest_id: UnsignedByteField, source_file: &str, dest_file: &str, trans_mode: Option<TransmissionMode>, closure_requested: Option<bool>, ) -> Result<Self, FilePathTooLarge>
pub fn new_msgs_to_user_only( dest_id: UnsignedByteField, msgs_to_user: &[MsgToUserTlv<'_>], ) -> 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 Clone for PutRequestOwned
impl Clone for PutRequestOwned
source§fn clone(&self) -> PutRequestOwned
fn clone(&self) -> PutRequestOwned
Returns a copy 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 PutRequestOwned
impl Debug for PutRequestOwned
source§impl<'de> Deserialize<'de> for PutRequestOwned
impl<'de> Deserialize<'de> for PutRequestOwned
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Format for PutRequestOwned
impl Format for PutRequestOwned
source§impl From<PutRequest<'_, '_, '_, '_, '_, '_>> for PutRequestOwned
impl From<PutRequest<'_, '_, '_, '_, '_, '_>> for PutRequestOwned
source§fn from(req: PutRequest<'_, '_, '_, '_, '_, '_>) -> Self
fn from(req: PutRequest<'_, '_, '_, '_, '_, '_>) -> Self
Converts to this type from the input type.
source§impl PartialEq for PutRequestOwned
impl PartialEq for PutRequestOwned
source§impl ReadablePutRequest for PutRequestOwned
impl ReadablePutRequest for PutRequestOwned
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<'_>>>
source§impl Serialize for PutRequestOwned
impl Serialize for PutRequestOwned
impl Eq for PutRequestOwned
impl StructuralPartialEq for PutRequestOwned
Auto Trait Implementations§
impl Freeze for PutRequestOwned
impl RefUnwindSafe for PutRequestOwned
impl Send for PutRequestOwned
impl Sync for PutRequestOwned
impl Unpin for PutRequestOwned
impl UnwindSafe for PutRequestOwned
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)