pub struct WebsocketConnectionBus { /* private fields */ }Trait Implementations§
Source§impl<B> CarryFrom<B> for WebsocketConnectionBuswhere
B: WebsocketMessageBus + DynBus,
impl<B> CarryFrom<B> for WebsocketConnectionBuswhere
B: WebsocketMessageBus + DynBus,
Source§impl Debug for WebsocketConnectionBus
impl Debug for WebsocketConnectionBus
Source§impl Default for WebsocketConnectionBus
impl Default for WebsocketConnectionBus
Source§impl DynBus for WebsocketConnectionBus
impl DynBus for WebsocketConnectionBus
Source§fn store_rx<Msg>(
&self,
rx: <Msg::Channel as Channel>::Rx,
) -> Result<(), AlreadyLinkedError>where
Msg: Message<Self> + 'static,
fn store_rx<Msg>(
&self,
rx: <Msg::Channel as Channel>::Rx,
) -> Result<(), AlreadyLinkedError>where
Msg: Message<Self> + 'static,
Stores an manually constructed Receiver on the bus, for the provided message type. Read more
Source§fn store_tx<Msg>(
&self,
tx: <Msg::Channel as Channel>::Tx,
) -> Result<(), AlreadyLinkedError>where
Msg: Message<Self> + 'static,
fn store_tx<Msg>(
&self,
tx: <Msg::Channel as Channel>::Tx,
) -> Result<(), AlreadyLinkedError>where
Msg: Message<Self> + 'static,
Stores an manually constructed Sender on the bus, for the provided message type. Read more
Source§fn store_channel<Msg>(
&self,
rx: <Msg::Channel as Channel>::Rx,
tx: <Msg::Channel as Channel>::Tx,
) -> Result<(), AlreadyLinkedError>where
Msg: Message<Self> + 'static,
fn store_channel<Msg>(
&self,
rx: <Msg::Channel as Channel>::Rx,
tx: <Msg::Channel as Channel>::Tx,
) -> Result<(), AlreadyLinkedError>where
Msg: Message<Self> + 'static,
Stores a channel pair on the bus, for the provided message type. Read more
Source§fn store_resource<R: Resource<Self>>(&self, resource: R)
fn store_resource<R: Resource<Self>>(&self, resource: R)
Stores a resource on the bus. Read more
Source§fn storage(&self) -> &DynBusStorage<Self>
fn storage(&self) -> &DynBusStorage<Self>
Returns the
DynBusStorage struct which manages the trait object slots.Source§impl Message<WebsocketConnectionBus> for WebsocketRecv
impl Message<WebsocketConnectionBus> for WebsocketRecv
type Channel = Sender<WebsocketRecv>
Source§impl Message<WebsocketConnectionBus> for WebsocketSend
impl Message<WebsocketConnectionBus> for WebsocketSend
type Channel = Sender<WebsocketSend>
impl Resource<WebsocketConnectionBus> for WebsocketAuthToken
impl Resource<WebsocketConnectionBus> for WebsocketResource
Auto Trait Implementations§
impl !Freeze for WebsocketConnectionBus
impl RefUnwindSafe for WebsocketConnectionBus
impl Send for WebsocketConnectionBus
impl !Sync for WebsocketConnectionBus
impl Unpin for WebsocketConnectionBus
impl UnwindSafe for WebsocketConnectionBus
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> Bus for Twhere
T: DynBus,
impl<T> Bus for Twhere
T: DynBus,
Source§fn rx<Msg>(
&self,
) -> Result<LifelineReceiver<Msg, <<Msg as Message<T>>::Channel as Channel>::Rx>, TakeChannelError>where
Msg: Message<T> + 'static,
fn rx<Msg>(
&self,
) -> Result<LifelineReceiver<Msg, <<Msg as Message<T>>::Channel as Channel>::Rx>, TakeChannelError>where
Msg: Message<T> + 'static,
Takes (or clones) the channel Receiver. The message type must implement Message<Bus>, which defines the channel type. Read more
Source§fn tx<Msg>(
&self,
) -> Result<LifelineSender<Msg, <<Msg as Message<T>>::Channel as Channel>::Tx>, TakeChannelError>where
Msg: Message<T> + 'static,
fn tx<Msg>(
&self,
) -> Result<LifelineSender<Msg, <<Msg as Message<T>>::Channel as Channel>::Tx>, TakeChannelError>where
Msg: Message<T> + 'static,
Takes (or clones) the channel Sender. The message type must implement Message<Bus>, which defines the channel type. Read more