pub struct WebsocketListenerBus { /* private fields */ }
Trait Implementations§
Source§impl Debug for WebsocketListenerBus
impl Debug for WebsocketListenerBus
Source§impl Default for WebsocketListenerBus
impl Default for WebsocketListenerBus
Source§impl DynBus for WebsocketListenerBus
impl DynBus for WebsocketListenerBus
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.impl Resource<WebsocketListenerBus> for WebsocketAuthToken
impl Resource<WebsocketListenerBus> for WebsocketListenerResource
Auto Trait Implementations§
impl !Freeze for WebsocketListenerBus
impl RefUnwindSafe for WebsocketListenerBus
impl Send for WebsocketListenerBus
impl !Sync for WebsocketListenerBus
impl Unpin for WebsocketListenerBus
impl UnwindSafe for WebsocketListenerBus
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