pub struct UntypedChannel { /* private fields */ }
Expand description

Represents a sender of requests tied to a session, holding onto a weak reference of mailboxes to relay responses, meaning that once the Client is closed or dropped, any sent request will no longer be able to receive responses.

In contrast to Channel, this implementation is untyped, meaning that the payload of requests and responses are not validated.

Implementations

Returns true if no more requests can be transferred

Consumes this channel, returning a typed variant

Assigns a default mailbox for any response received that does not match another mailbox.

Removes the default mailbox used for unmatched responses such that any response without a matching mailbox will be dropped.

Sends a request and returns a mailbox that can receive one or more responses, failing if unable to send a request or if the session’s receiving line to the remote server has already been severed

Sends a request and returns a mailbox, timing out after duration has passed

Sends a request and waits for a response, failing if unable to send a request or if the session’s receiving line to the remote server has already been severed

Sends a request and waits for a response, timing out after duration has passed

Sends a request without waiting for a response; this method is able to be used even if the session’s receiving line to the remote server has been severed

Sends a request without waiting for a response, timing out after duration has passed

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.