pub struct RendererMessage {
pub version: String,
pub payload: RendererPayload,
}Expand description
One renderer → agent message.
Fields§
§version: StringProtocol version stamped on the wire.
payload: RendererPayloadThe single payload key that gives this message its type.
Implementations§
Source§impl RendererMessage
impl RendererMessage
Sourcepub fn new(payload: RendererPayload) -> Self
pub fn new(payload: RendererPayload) -> Self
Wraps a payload with the current protocol version.
Sourcepub fn surface_id(&self) -> Option<&str>
pub fn surface_id(&self) -> Option<&str>
The surfaceId this message relates to, if any.
Trait Implementations§
Source§impl Clone for RendererMessage
impl Clone for RendererMessage
Source§fn clone(&self) -> RendererMessage
fn clone(&self) -> RendererMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RendererMessage
impl Debug for RendererMessage
Source§impl<'de> Deserialize<'de> for RendererMessage
impl<'de> Deserialize<'de> for RendererMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RendererMessage
impl PartialEq for RendererMessage
Source§fn eq(&self, other: &RendererMessage) -> bool
fn eq(&self, other: &RendererMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RendererMessage
impl Serialize for RendererMessage
impl StructuralPartialEq for RendererMessage
Auto Trait Implementations§
impl Freeze for RendererMessage
impl RefUnwindSafe for RendererMessage
impl Send for RendererMessage
impl Sync for RendererMessage
impl Unpin for RendererMessage
impl UnsafeUnpin for RendererMessage
impl UnwindSafe for RendererMessage
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