pub struct StaticPutRequestCacher<const BUF_SIZE: usize> {
pub static_fields: StaticPutRequestFields,
/* private fields */
}
Expand description
This is a put request cache structure which can be used to cache ReadablePutRequests without requiring run-time allocation. The user must specify the static buffer sizes used to store TLVs or list of TLVs.
Fields§
§static_fields: StaticPutRequestFields
Implementations§
Source§impl<const BUF_SIZE: usize> StaticPutRequestCacher<BUF_SIZE>
impl<const BUF_SIZE: usize> StaticPutRequestCacher<BUF_SIZE>
pub fn new() -> Self
pub fn set( &mut self, put_request: &impl ReadablePutRequest, ) -> Result<(), ByteConversionError>
pub fn has_source_file(&self) -> bool
pub fn has_dest_file(&self) -> bool
pub fn source_file(&self) -> Result<&str, Utf8Error>
pub fn dest_file(&self) -> Result<&str, Utf8Error>
pub fn opts_len(&self) -> usize
pub fn opts_slice(&self) -> &[u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl<const BUF_SIZE: usize> Freeze for StaticPutRequestCacher<BUF_SIZE>
impl<const BUF_SIZE: usize> RefUnwindSafe for StaticPutRequestCacher<BUF_SIZE>
impl<const BUF_SIZE: usize> Send for StaticPutRequestCacher<BUF_SIZE>
impl<const BUF_SIZE: usize> Sync for StaticPutRequestCacher<BUF_SIZE>
impl<const BUF_SIZE: usize> Unpin for StaticPutRequestCacher<BUF_SIZE>
impl<const BUF_SIZE: usize> UnwindSafe for StaticPutRequestCacher<BUF_SIZE>
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