pub struct ConnectedFrame<'a> { /* private fields */ }Expand description
This frame has required headers version and optional headers heartbeat,session,server.
Implementations§
Source§impl<'a> ConnectedFrame<'a>
impl<'a> ConnectedFrame<'a>
Sourcepub fn version(&'a self) -> &'a VersionValue<'a>
pub fn version(&'a self) -> &'a VersionValue<'a>
The value of the version header.
Sourcepub fn heartbeat(&'a self) -> Option<&'a HeartBeatValue<'a>>
pub fn heartbeat(&'a self) -> Option<&'a HeartBeatValue<'a>>
The value of the heartbeat header.
Sourcepub fn session(&'a self) -> Option<&'a SessionValue<'a>>
pub fn session(&'a self) -> Option<&'a SessionValue<'a>>
The value of the session header.
Sourcepub fn server(&'a self) -> Option<&'a ServerValue<'a>>
pub fn server(&'a self) -> Option<&'a ServerValue<'a>>
The value of the server header.
Trait Implementations§
Source§impl<'a> Debug for ConnectedFrame<'a>
impl<'a> Debug for ConnectedFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConnectedFrame<'a>
impl<'a> RefUnwindSafe for ConnectedFrame<'a>
impl<'a> Send for ConnectedFrame<'a>
impl<'a> Sync for ConnectedFrame<'a>
impl<'a> Unpin for ConnectedFrame<'a>
impl<'a> UnwindSafe for ConnectedFrame<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more