Struct aurelius::Server [] [src]

pub struct Server { /* fields omitted */ }

An instance of the a markdown preview server.

The server will listen for HTTP and WebSocket connections on arbitrary ports.

Examples

use aurelius::{Config, Server};

let listening = Server::new_with_config(
    Config {
        initial_markdown: Some(String::from("# Hello, world!")),
        ..Default::default()
    })
    .start()
    .unwrap();

Methods

impl Server
[src]

[src]

Create a new markdown preview server.

[src]

Create a new markdown preview server with the given configuration.

[src]

Starts the server.

Returns a channel that can be used to send markdown to the server. The markdown will be sent as HTML to all clients of the websocket server.

Trait Implementations

impl Debug for Server
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Server
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Server
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Server

impl Sync for Server