pub struct OutgoingMessage { /* private fields */ }
Implementations§
Source§impl OutgoingMessage
Represents a vmbus message to be sent using the synic.
impl OutgoingMessage
Represents a vmbus message to be sent using the synic.
Sourcepub fn new<T: IntoBytes + Immutable + KnownLayout + VmbusMessage>(
message: &T,
) -> Self
pub fn new<T: IntoBytes + Immutable + KnownLayout + VmbusMessage>( message: &T, ) -> Self
Creates a new OutgoingMessage
for the specified protocol message.
Sourcepub fn with_data<T: IntoBytes + Immutable + KnownLayout + VmbusMessage>(
message: &T,
data: &[u8],
) -> Self
pub fn with_data<T: IntoBytes + Immutable + KnownLayout + VmbusMessage>( message: &T, data: &[u8], ) -> Self
Creates a new OutgoingMessage
for the specified protocol message, including additional
data at the end of the message.
Sourcepub fn from_message(message: &[u8]) -> Result<Self, MessageTooLarge>
pub fn from_message(message: &[u8]) -> Result<Self, MessageTooLarge>
Converts an existing binary message to an OutgoingMessage
. The slice
is assumed to contain a valid message.
Trait Implementations§
Source§impl Clone for OutgoingMessage
impl Clone for OutgoingMessage
Source§fn clone(&self) -> OutgoingMessage
fn clone(&self) -> OutgoingMessage
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 OutgoingMessage
impl Debug for OutgoingMessage
Source§impl PartialEq for OutgoingMessage
impl PartialEq for OutgoingMessage
Auto Trait Implementations§
impl Freeze for OutgoingMessage
impl RefUnwindSafe for OutgoingMessage
impl Send for OutgoingMessage
impl Sync for OutgoingMessage
impl Unpin for OutgoingMessage
impl UnwindSafe for OutgoingMessage
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