Struct mrsc::Channel [] [src]

pub struct Channel<T, R> { /* fields omitted */ }

A channel to the server that can be used to send requests

Methods

impl<T, R> Channel<T, R>
[src]

[src]

Sends a new request to the server.

Examples

use mrsc;

let server: mrsc::Server<u32, String> = mrsc::Server::new();

let channel = server.pop();
channel.req(123).unwrap();

Trait Implementations

impl<T: Debug, R: Debug> Debug for Channel<T, R>
[src]

[src]

Formats the value using the given formatter.

impl<T: Clone, R: Clone> Clone for Channel<T, R>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more