Struct hadean::RawReceiver [] [src]

pub struct RawReceiver(_, _);

Untyped receiving end of a channel, can be converted to a Receiver<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 RawReceiver
[src]

[src]

Wraps RawReceiver::with_len(DEFAULT_BUF_LEN)

[src]

Accepts a newly-spawned ChannelEndpoint::Pid channel.

[src]

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

[src]

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

[src]

Receive a dynamic T on a Channel. May panic if the data read does not form a valid T (e.g. a u8 equal to 5 would fail if received as a bool).

[src]

Receives bytes into bs until it is fully populated.

[src]

Receive bytes available

Trait Implementations

impl Debug for RawReceiver
[src]

[src]

Formats the value using the given formatter.