pub enum TransferBody {
Data(Bytes),
MessageIn(InMessage),
MessageOut(OutMessage),
}
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§fn from(original: Bytes) -> TransferBody
fn from(original: Bytes) -> TransferBody
Converts to this type from the input type.
Source§impl From<InMessage> for TransferBody
impl From<InMessage> for TransferBody
Source§fn from(original: InMessage) -> TransferBody
fn from(original: InMessage) -> TransferBody
Converts to this type from the input type.
Source§impl From<OutMessage> for TransferBody
impl From<OutMessage> for TransferBody
Source§fn from(original: OutMessage) -> TransferBody
fn from(original: OutMessage) -> TransferBody
Converts to this type from the input type.
Source§impl PartialEq for TransferBody
impl PartialEq 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