Struct binate::frame::codec::SetupFrameBuilder [−][src]
pub struct SetupFrameBuilder { /* fields omitted */ }
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.
Builds a SetupFrame
from this builder.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SetupFrameBuilder
impl Send for SetupFrameBuilder
impl Sync for SetupFrameBuilder
impl Unpin for SetupFrameBuilder
impl UnwindSafe for SetupFrameBuilder