pub enum MessageBody<'b> {
Text(&'b str),
Binary(&'b [u8]),
}
Expand description
Enum to return the type of an IOT hub message.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'b> Freeze for MessageBody<'b>
impl<'b> RefUnwindSafe for MessageBody<'b>
impl<'b> Send for MessageBody<'b>
impl<'b> Sync for MessageBody<'b>
impl<'b> Unpin for MessageBody<'b>
impl<'b> UnwindSafe for MessageBody<'b>
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