pub struct PanicBuffer(/* private fields */);Expand description
Panic buffer which size cannot be bigger then max allowed payload size.
Implementations§
Trait Implementations§
Source§impl Clone for PanicBuffer
impl Clone for PanicBuffer
Source§fn clone(&self) -> PanicBuffer
fn clone(&self) -> PanicBuffer
Returns a duplicate 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 PanicBuffer
impl Debug for PanicBuffer
Source§impl Decode for PanicBuffer
impl Decode for PanicBuffer
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Default for PanicBuffer
impl Default for PanicBuffer
Source§fn default() -> PanicBuffer
fn default() -> PanicBuffer
Returns the “default value” for a type. Read more
Source§impl Display for PanicBuffer
impl Display for PanicBuffer
Source§impl Encode for PanicBuffer
impl Encode for PanicBuffer
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>( &self, f: __CodecUsingEncodedCallback, ) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl From<LimitedStr<'_>> for PanicBuffer
impl From<LimitedStr<'_>> for PanicBuffer
Source§fn from(value: LimitedStr<'_>) -> Self
fn from(value: LimitedStr<'_>) -> Self
Converts to this type from the input type.
Source§impl From<LimitedVec<u8, PayloadSizeError, MAX_PAYLOAD_SIZE>> for PanicBuffer
impl From<LimitedVec<u8, PayloadSizeError, MAX_PAYLOAD_SIZE>> for PanicBuffer
Source§impl From<PanicBuffer> for Payload
impl From<PanicBuffer> for Payload
Source§fn from(value: PanicBuffer) -> Self
fn from(value: PanicBuffer) -> Self
Converts to this type from the input type.
Source§impl Hash for PanicBuffer
impl Hash for PanicBuffer
Source§impl Ord for PanicBuffer
impl Ord for PanicBuffer
Source§fn cmp(&self, other: &PanicBuffer) -> Ordering
fn cmp(&self, other: &PanicBuffer) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PanicBuffer
impl PartialEq for PanicBuffer
Source§impl PartialOrd for PanicBuffer
impl PartialOrd for PanicBuffer
Source§impl TypeInfo for PanicBuffer
impl TypeInfo for PanicBuffer
impl EncodeLike for PanicBuffer
impl Eq for PanicBuffer
impl StructuralPartialEq for PanicBuffer
Auto Trait Implementations§
impl Freeze for PanicBuffer
impl RefUnwindSafe for PanicBuffer
impl Send for PanicBuffer
impl Sync for PanicBuffer
impl Unpin for PanicBuffer
impl UnwindSafe for PanicBuffer
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