Struct evcxr_runtime::ContentMimeType [−][src]
pub struct ContentMimeType { /* fields omitted */ }
Represents a mime type for some content that is yet to be emitted.
Methods
impl ContentMimeType
[src]
impl ContentMimeType
pub fn text(self, text: &str)
[src]
pub fn text(self, text: &str)
Emits the supplied content, which should be of the mime type already specified. If the type is a binary format (e.g. image/png), the content should have already been base64 encoded.
evcxr_runtime::mime_type("text/html") .text("<span style=\"color: red\">>Hello world</span>");
Auto Trait Implementations
impl Send for ContentMimeType
impl Send for ContentMimeType
impl Sync for ContentMimeType
impl Sync for ContentMimeType