pub struct ConnectedFrameBuilder { /* private fields */ }Expand description
This frame has required headers version and optional headers heartbeat,session,server.
Implementations§
Source§impl ConnectedFrameBuilder
impl ConnectedFrameBuilder
Sourcepub fn heartbeat(
self,
new_val: <HeartBeatValue<'_> as HeaderValue>::OwnedValue,
) -> ConnectedFrameBuilder
pub fn heartbeat( self, new_val: <HeartBeatValue<'_> as HeaderValue>::OwnedValue, ) -> ConnectedFrameBuilder
The value of the heartbeat header.
Sourcepub fn session(
self,
new_val: <SessionValue<'_> as HeaderValue>::OwnedValue,
) -> ConnectedFrameBuilder
pub fn session( self, new_val: <SessionValue<'_> as HeaderValue>::OwnedValue, ) -> ConnectedFrameBuilder
The value of the session header.
Sourcepub fn server(
self,
new_val: <ServerValue<'_> as HeaderValue>::OwnedValue,
) -> ConnectedFrameBuilder
pub fn server( self, new_val: <ServerValue<'_> as HeaderValue>::OwnedValue, ) -> ConnectedFrameBuilder
The value of the server header.
pub fn new( version: <VersionValue<'static> as HeaderValue>::OwnedValue, ) -> ConnectedFrameBuilder
pub fn build(self) -> ConnectedFrame<'static>
Auto Trait Implementations§
impl Freeze for ConnectedFrameBuilder
impl RefUnwindSafe for ConnectedFrameBuilder
impl Send for ConnectedFrameBuilder
impl Sync for ConnectedFrameBuilder
impl Unpin for ConnectedFrameBuilder
impl UnsafeUnpin for ConnectedFrameBuilder
impl UnwindSafe for ConnectedFrameBuilder
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