pub struct Resume {
pub version: Version,
pub resume_identification_token: Bytes,
pub last_received_server_position: u64,
pub first_available_client_position: u64,
/* private fields */
}
Fields§
§version: Version
Version
Major and minor version numbers of the protocol.
resume_identification_token: Bytes
Resume Identification Token
Token used for client resume identification. Same Resume Identification used in the initial SETUP by the client.
last_received_server_position: u64
Last Received Server Position
Unsigned 63-bit long of the last implied position the client received from the server.
first_available_client_position: u64
Unsigned 63-bit long of the earliest position that the client ca rewind back to prior to resending frames.
Implementations§
Trait Implementations§
Source§impl Decoder for Resume
impl Decoder for Resume
Source§impl Encoder for Resume
impl Encoder for Resume
Source§impl FrameVariant for Resume
impl FrameVariant for Resume
Source§const FLAGS_MASK: FrameFlags
const FLAGS_MASK: FrameFlags
Mask that flags of a variant must be in.
Source§fn flags(&self) -> FrameFlags
fn flags(&self) -> FrameFlags
Gets the flags of the variant.
Source§const REQUIRED_FLAGS: FrameFlags = _
const REQUIRED_FLAGS: FrameFlags = _
Flags that must be set for a variant.
Auto Trait Implementations§
impl !Freeze for Resume
impl RefUnwindSafe for Resume
impl Send for Resume
impl Sync for Resume
impl Unpin for Resume
impl UnwindSafe for Resume
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more