Struct hadean::RawSender [] [src]

pub struct RawSender(_, _);

Untyped sending end of a channel, can be converted to a Sender<T>. Either returned by spawn(), given to a newly-spawned worker in its arguments, or opened by the user to accept a newly-spawned ChannelEndpoint::Pid channel end.

Methods

impl RawSender
[src]

[src]

Wraps RawSender::with_len(DEFAULT_BUF_LEN)

[src]

Accepts a newly-spawned ChannelEndpoint::Pid channel.

[src]

Convert to a Sender<T> or panic if the type cannot be verified Will only succeed with RawSenders from spawn().

[src]

Convert to a Sender<T> without checking for the correct type. Required for RawSenders not from spawn().

[src]

Send a dynamic T on a Channel. May cause the other end to panic if the is not what the other end was expecting (see RawReceiver::receive).

[src]

it sends bytes

[src]

Send bytes available

Trait Implementations

impl Debug for RawSender
[src]

[src]

Formats the value using the given formatter.