[−][src]Struct turbulence::message_channels::MessageChannelsBuilder
Methods
impl<R, P> MessageChannelsBuilder<R, P> where
R: Runtime,
P: PacketPool,
[src]
R: Runtime,
P: PacketPool,
impl<R, P> MessageChannelsBuilder<R, P> where
R: Runtime + 'static,
P: PacketPool + Clone + Send + 'static,
P::Packet: Unpin + Send,
[src]
R: Runtime + 'static,
P: PacketPool + Clone + Send + 'static,
P::Packet: Unpin + Send,
pub fn register<M: ChannelMessage>(
&mut self,
settings: MessageChannelSettings
) -> Result<(), ChannelAlreadyRegistered>
[src]
&mut self,
settings: MessageChannelSettings
) -> Result<(), ChannelAlreadyRegistered>
Register this message type on the constructed MessageChannels
, using the given channel
settings.
Can only be called once per message type, will error if it is called with the same message type more than once.
pub fn build(
self,
multiplexer: &mut PacketMultiplexer<P::Packet>
) -> MessageChannels
[src]
self,
multiplexer: &mut PacketMultiplexer<P::Packet>
) -> MessageChannels
Build a MessageChannels
instance that can send and receive all of the registered message
types via channels on the given packet multiplexer.
Auto Trait Implementations
impl<R, P> RefUnwindSafe for MessageChannelsBuilder<R, P> where
P: RefUnwindSafe,
R: RefUnwindSafe,
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, P> Send for MessageChannelsBuilder<R, P> where
P: Send,
P: Send,
impl<R, P> Sync for MessageChannelsBuilder<R, P> where
P: Sync,
P: Sync,
impl<R, P> Unpin for MessageChannelsBuilder<R, P> where
P: Unpin,
R: Unpin,
P: Unpin,
R: Unpin,
impl<R, P> UnwindSafe for MessageChannelsBuilder<R, P> where
P: UnwindSafe,
R: UnwindSafe,
P: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,