pub struct StaticPutRequestCacher {
pub static_fields: StaticPutRequestFields,
/* private fields */
}
Available on crate feature
alloc
only.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 StaticPutRequestCacher
impl StaticPutRequestCacher
pub fn new(max_len_opts_buf: usize) -> 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] ⓘ
Auto Trait Implementations§
impl Freeze for StaticPutRequestCacher
impl RefUnwindSafe for StaticPutRequestCacher
impl Send for StaticPutRequestCacher
impl Sync for StaticPutRequestCacher
impl Unpin for StaticPutRequestCacher
impl UnwindSafe for StaticPutRequestCacher
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