Struct binate::frame::codec::SetupFrameBuilder[][src]

pub struct SetupFrameBuilder { /* fields omitted */ }
This is supported on crate feature frame only.
Expand description

A builder for configuring the setup frame.

Implementations

Sets the Resume flag.

Sets the Lease flag.

Sets the RSocket protocol version.

Sets the interval (in milliseconds) between two KEEPALIVE frames that the client will send. This value MUST be > 0 and <= MAX_U31.

  • For server-to-server connections, a reasonable time interval between client KEEPALIVE frames is 500ms.

  • For mobile-to-server connections, the time interval between client KEEPALIVE frames is often > 30,000ms.

Sets the time (in milliseconds) that a client will allow a server to not respond to a KEEPALIVE before it is assumed to be dead. This value MUST be > 0 and <= MAX_U31.

Sets the resume identification token.

Panics

This function panics if the length of the given token is greater than 65,535 bytes.

Sets the metadata mimetype.

The given mimetype should be a ASCII string that includes the Internet media type specified in RFC 2045.

Panics

This function panics if the length of the given mimetype is greater than 256 bytes.

Sets the data mimetype.

The given mimetype should be a ASCII string that includes the Internet media type specified in RFC 2045.

Panics

This function panics if the length of the given mimetype is greater than 256 bytes.

Sets the metadata payload of this setup frame.

Sets the data payload of this setup frame.

Builds a SetupFrame from this builder.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.