pub struct OwnedMessage { /* private fields */ }Implementationsยง
Sourceยงimpl OwnedMessage
impl OwnedMessage
pub fn new(header: MessageHeader, payload: Vec<u8>) -> OwnedMessage
pub fn header(&self) -> &MessageHeader
pub fn take(self) -> (MessageHeader, Vec<u8>)
Trait Implementationsยง
Sourceยงimpl Clone for OwnedMessage
impl Clone for OwnedMessage
Sourceยงfn clone(&self) -> OwnedMessage
fn clone(&self) -> OwnedMessage
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 OwnedMessage
impl Debug for OwnedMessage
Sourceยงimpl Hash for OwnedMessage
impl Hash for OwnedMessage
Sourceยงimpl Message for OwnedMessage
impl Message for OwnedMessage
Sourceยงimpl PartialEq for OwnedMessage
impl PartialEq for OwnedMessage
impl Eq for OwnedMessage
impl StructuralPartialEq for OwnedMessage
Auto Trait Implementationsยง
impl Freeze for OwnedMessage
impl RefUnwindSafe for OwnedMessage
impl Send for OwnedMessage
impl Sync for OwnedMessage
impl Unpin for OwnedMessage
impl UnwindSafe for OwnedMessage
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