pub enum TransferBody {
Data(Bytes),
Message(Message),
}Variants§
Implementations§
Source§impl TransferBody
impl TransferBody
pub fn len(&self) -> usize
pub fn message_format(&self) -> Option<MessageFormat>
Trait Implementations§
Source§impl Clone for TransferBody
impl Clone for TransferBody
Source§fn clone(&self) -> TransferBody
fn clone(&self) -> TransferBody
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 TransferBody
impl Debug for TransferBody
Source§impl Encode for TransferBody
impl Encode for TransferBody
Source§impl From<Bytes> for TransferBody
impl From<Bytes> for TransferBody
Source§impl From<Message> for TransferBody
impl From<Message> for TransferBody
Source§impl PartialEq for TransferBody
impl PartialEq for TransferBody
impl Eq for TransferBody
impl StructuralPartialEq for TransferBody
Auto Trait Implementations§
impl Freeze for TransferBody
impl !RefUnwindSafe for TransferBody
impl Send for TransferBody
impl !Sync for TransferBody
impl Unpin for TransferBody
impl !UnwindSafe for TransferBody
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