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

Bridge represents a network between the two endpoints.

Implementations

Len returns number of queued packets.

Reorder inverses the order of packets currently in the specified queue.

Drop drops the specified number of packets from the given offset index of the specified queue.

drop_next_nwrites drops the next n packets that will be written to the specified queue.

reorder_next_nwrites drops the next n packets that will be written to the specified queue.

Tick attempts to hand a packet from the queue for each directions, to readers, if there are waiting on the queue. If there’s no reader, it will return immediately.

Process repeats tick() calls until no more outstanding packet in the queues.

Trait Implementations

Returns the “default value” for a type. Read more

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.

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.