Struct oxygengine_editor_tools::simp::SimpMessage
source · pub struct SimpMessage {
pub id: SimpMessageId,
pub text_data: Option<String>,
pub binary_data: Option<Vec<u8>>,
}
Fields§
§id: SimpMessageId
§text_data: Option<String>
§binary_data: Option<Vec<u8>>
Implementations§
source§impl SimpMessage
impl SimpMessage
pub fn new(id: SimpMessageId, text_data: String, binary_data: Vec<u8>) -> Self
pub fn text(id: SimpMessageId, text_data: String) -> Self
pub fn binary(id: SimpMessageId, binary_data: Vec<u8>) -> Self
pub fn empty(id: SimpMessageId) -> Self
Trait Implementations§
source§impl Clone for SimpMessage
impl Clone for SimpMessage
source§fn clone(&self) -> SimpMessage
fn clone(&self) -> SimpMessage
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 SimpMessage
impl Debug for SimpMessage
Auto Trait Implementations§
impl RefUnwindSafe for SimpMessage
impl Send for SimpMessage
impl Sync for SimpMessage
impl Unpin for SimpMessage
impl UnwindSafe for SimpMessage
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