Enum selium_protocol::Frame
source · pub enum Frame {
RegisterPublisher(PublisherPayload),
RegisterSubscriber(SubscriberPayload),
RegisterReplier(ReplierPayload),
RegisterRequestor(RequestorPayload),
Message(MessagePayload),
BatchMessage(Bytes),
Error(Bytes),
Ok,
}Variants§
RegisterPublisher(PublisherPayload)
RegisterSubscriber(SubscriberPayload)
RegisterReplier(ReplierPayload)
RegisterRequestor(RequestorPayload)
Message(MessagePayload)
BatchMessage(Bytes)
Error(Bytes)
Ok
Implementations§
Trait Implementations§
source§impl Encoder<Frame> for MessageCodec
impl Encoder<Frame> for MessageCodec
source§impl PartialEq for Frame
impl PartialEq for Frame
source§impl Sink<Frame> for BiStream
impl Sink<Frame> for BiStream
§type Error = SeliumError
type Error = SeliumError
The type of value produced by the sink when an error occurs.
source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink to receive a value. Read moresource§fn start_send(self: Pin<&mut Self>, item: Frame) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Frame) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moresource§impl Sink<Frame> for WriteHalf
impl Sink<Frame> for WriteHalf
§type Error = SeliumError
type Error = SeliumError
The type of value produced by the sink when an error occurs.
source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink to receive a value. Read moresource§fn start_send(self: Pin<&mut Self>, item: Frame) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Frame) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moreimpl StructuralPartialEq for Frame
Auto Trait Implementations§
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