pub struct Alloc<Clk, Sock>(_)
where
    Clk: Clock<T = u64> + 'static,
    Sock: Socket + 'static
;
Expand description

Configures toad to use Vec for collections, UdpSocket for networking, and crate::std::Clock for timing

use toad::platform::Std;
use toad::req::Req;

Req::<Std>::get("192.168.0.1:5683".parse().unwrap(), "/hello");

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
What type should we use to store the message payloads?
What type should we use to store the option values?
What type should we use to store the options?
What type should we use to keep track of message IDs we’ve seen with a remote socket?
What type should we use to keep track of message Tokens we’ve seen with a remote socket?
How do we track socket <> id histories?
How do we track socket <> token histories?
What type should we use to keep track of options before serializing?
What should we use to keep track of time?
What should we use for networking?

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.