Struct soup::MessageBody
source · #[repr(transparent)]pub struct MessageBody { /* private fields */ }
Implementations§
source§impl MessageBody
impl MessageBody
sourcepub fn as_ptr(&self) -> *mut SoupMessageBody
pub fn as_ptr(&self) -> *mut SoupMessageBody
Return the inner pointer to the underlying C value.
source§impl MessageBody
impl MessageBody
pub fn new() -> MessageBody
pub fn append_bytes(&self, buffer: &Bytes)
pub fn append_take(&self, data: &[u8])
pub fn complete(&self)
pub fn flatten(&self) -> Option<Bytes>
pub fn is_accumulate(&self) -> bool
pub fn chunk(&self, offset: i64) -> Option<Bytes>
pub fn got_chunk(&self, chunk: &Bytes)
pub fn set_accumulate(&self, accumulate: bool)
pub fn truncate(&self)
pub fn wrote_chunk(&self, chunk: &Bytes)
Trait Implementations§
source§impl Clone for MessageBody
impl Clone for MessageBody
source§impl Debug for MessageBody
impl Debug for MessageBody
source§impl Default for MessageBody
impl Default for MessageBody
source§impl Hash for MessageBody
impl Hash for MessageBody
source§impl Ord for MessageBody
impl Ord for MessageBody
source§fn cmp(&self, other: &MessageBody) -> Ordering
fn cmp(&self, other: &MessageBody) -> 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<MessageBody> for MessageBody
impl PartialEq<MessageBody> for MessageBody
source§fn eq(&self, other: &MessageBody) -> bool
fn eq(&self, other: &MessageBody) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MessageBody> for MessageBody
impl PartialOrd<MessageBody> for MessageBody
source§fn partial_cmp(&self, other: &MessageBody) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageBody) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for MessageBody
impl StaticType for MessageBody
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for MessageBody
impl StructuralEq for MessageBody
impl StructuralPartialEq for MessageBody
Auto Trait Implementations§
impl RefUnwindSafe for MessageBody
impl !Send for MessageBody
impl !Sync for MessageBody
impl Unpin for MessageBody
impl UnwindSafe for MessageBody
Blanket Implementations§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.