pub struct TypeErasedChannel {
pub senders: Vec<AnyBoxSender>,
pub receivers: Vec<AnyBoxReceiver>,
}Fields§
§senders: Vec<AnyBoxSender>§receivers: Vec<AnyBoxReceiver>Implementations§
Source§impl TypeErasedChannel
impl TypeErasedChannel
Sourcepub fn builder() -> TypeErasedChannelBuilder
pub fn builder() -> TypeErasedChannelBuilder
Create an instance of TypeErasedChannel using the builder syntax
Source§impl TypeErasedChannel
impl TypeErasedChannel
pub fn try_take_sender(&mut self) -> Result<AnyBoxSender>
pub fn try_take_receiver(&mut self) -> Result<AnyBoxReceiver>
Auto Trait Implementations§
impl Freeze for TypeErasedChannel
impl !RefUnwindSafe for TypeErasedChannel
impl !Send for TypeErasedChannel
impl !Sync for TypeErasedChannel
impl Unpin for TypeErasedChannel
impl UnsafeUnpin for TypeErasedChannel
impl !UnwindSafe for TypeErasedChannel
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