pub struct NamedObjectBodyContext { /* private fields */ }Implementations§
Source§impl NamedObjectBodyContext
impl NamedObjectBodyContext
pub fn new() -> Self
pub fn cache_body_content_size(&mut self, size: usize) -> &mut Self
pub fn get_body_content_cached_size(&self) -> usize
Trait Implementations§
Source§impl Clone for NamedObjectBodyContext
impl Clone for NamedObjectBodyContext
Source§fn clone(&self) -> NamedObjectBodyContext
fn clone(&self) -> NamedObjectBodyContext
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 NamedObjectBodyContext
impl Debug for NamedObjectBodyContext
Source§impl<'de, B, O> RawDecodeWithContext<'de, &NamedObjectBodyContext> for ObjectMutBody<B, O>
impl<'de, B, O> RawDecodeWithContext<'de, &NamedObjectBodyContext> for ObjectMutBody<B, O>
fn raw_decode_with_context( buf: &'de [u8], _ctx: &NamedObjectBodyContext, ) -> BuckyResult<(Self, &'de [u8])>
Source§impl<'de, B, O> RawEncodeWithContext<NamedObjectBodyContext> for ObjectMutBody<B, O>
impl<'de, B, O> RawEncodeWithContext<NamedObjectBodyContext> for ObjectMutBody<B, O>
fn raw_measure_with_context( &self, ctx: &mut NamedObjectBodyContext, purpose: &Option<RawEncodePurpose>, ) -> BuckyResult<usize>
fn raw_encode_with_context<'a>( &self, buf: &'a mut [u8], ctx: &mut NamedObjectBodyContext, purpose: &Option<RawEncodePurpose>, ) -> BuckyResult<&'a mut [u8]>
fn raw_tail_encode_with_context<'a>( &self, buf: &'a mut [u8], context: &mut Context, purpose: &Option<RawEncodePurpose>, ) -> BuckyResult<&'a [u8]>
Auto Trait Implementations§
impl Freeze for NamedObjectBodyContext
impl RefUnwindSafe for NamedObjectBodyContext
impl Send for NamedObjectBodyContext
impl Sync for NamedObjectBodyContext
impl Unpin for NamedObjectBodyContext
impl UnsafeUnpin for NamedObjectBodyContext
impl UnwindSafe for NamedObjectBodyContext
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more