Type Alias RawWebSocketItem

Source
pub type RawWebSocketItem<I, R> = WebSocketItem<Communication<I>, Sender<Communication<R>>>;

Aliased Type§

struct RawWebSocketItem<I, R> {
    pub item: Communication<I>,
    /* private fields */
}

Fields§

§item: Communication<I>

Implementations§

Source§

impl<I, R> RawWebSocketItem<I, R>
where I: CommunicableType, R: CommunicableType + From<GenericWebSocketError>,

Source

pub fn channel(item: Communication<I>) -> (Self, WebSocketItemReceiver<R>)

Source

pub fn tagged_channel<Tag: IntoAugmentation>( item: Communication<I>, tag: Tag, ) -> (Self, WebSocketItemReceiver<R, Tag>)

Source

pub fn with_raw_responder( item: Communication<I>, responder: Sender<Communication<R>>, ) -> Self

Source

pub fn decode<Item>( self, ) -> Result<WebSocketItem<Item, EncodingResponder<Item, I, R>>, DecodeError>
where Item: Communicable<I>,

Source

pub fn unsupported(self)