pub enum Frame {
Show 15 variants
Setup(Setup),
Error(Error),
Lease(Lease),
Keepalive(Keepalive),
RequestResponse(RequestResponse),
RequestFNF(RequestFNF),
RequestStream(RequestStream),
RequestChannel(RequestChannel),
RequestN(RequestN),
Cancel(Cancel),
Payload(Payload),
MetadataPush(MetadataPush),
Ext(Ext),
Resume(Resume),
ResumeOk(ResumeOk),
}
Expand description
An enum of all frame variants supported by RSocket.
Variants§
Setup(Setup)
Error(Error)
Lease(Lease)
Keepalive(Keepalive)
RequestResponse(RequestResponse)
RequestFNF(RequestFNF)
RequestStream(RequestStream)
RequestChannel(RequestChannel)
RequestN(RequestN)
Cancel(Cancel)
Payload(Payload)
MetadataPush(MetadataPush)
Ext(Ext)
Resume(Resume)
ResumeOk(ResumeOk)
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn tagged(self, stream_id: StreamId) -> TaggedFrame
pub fn tagged(self, stream_id: StreamId) -> TaggedFrame
Wraps the frame in a TaggedFrame
with the provided stream
identifier.
§Parameters
stream_id
- The stream identifier to tag the frame with.
Trait Implementations§
Source§impl Encoder for Frame
impl Encoder for Frame
Source§impl From<MetadataPush> for Frame
impl From<MetadataPush> for Frame
Source§fn from(value: MetadataPush) -> Self
fn from(value: MetadataPush) -> Self
Converts to this type from the input type.
Source§impl From<RequestChannel> for Frame
impl From<RequestChannel> for Frame
Source§fn from(value: RequestChannel) -> Self
fn from(value: RequestChannel) -> Self
Converts to this type from the input type.
Source§impl From<RequestFNF> for Frame
impl From<RequestFNF> for Frame
Source§fn from(value: RequestFNF) -> Self
fn from(value: RequestFNF) -> Self
Converts to this type from the input type.
Source§impl From<RequestResponse> for Frame
impl From<RequestResponse> for Frame
Source§fn from(value: RequestResponse) -> Self
fn from(value: RequestResponse) -> Self
Converts to this type from the input type.
Source§impl From<RequestStream> for Frame
impl From<RequestStream> for Frame
Source§fn from(value: RequestStream) -> Self
fn from(value: RequestStream) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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