Struct sea_streamer_types::OwnedMessage
source · pub struct OwnedMessage { /* private fields */ }
Implementations§
source§impl OwnedMessage
impl OwnedMessage
pub fn new(header: MessageHeader, payload: Vec<u8>) -> Self
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 copy 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
source§fn eq(&self, other: &OwnedMessage) -> bool
fn eq(&self, other: &OwnedMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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