Trait muse_channel::WithNewChannel

source ·
pub trait WithNewChannel: Sized {
    // Required method
    fn with_new_channel_named(
        self,
        name: impl Into<SymbolRef>,
        guard: &mut CollectionGuard<'_>,
    ) -> Self;

    // Provided method
    fn with_new_channel(self, guard: &mut CollectionGuard<'_>) -> Self { ... }
}
Expand description

Registers a new_channel Muse function in self.

Required Methods§

source

fn with_new_channel_named( self, name: impl Into<SymbolRef>, guard: &mut CollectionGuard<'_>, ) -> Self

Registers new_channel_function() in self as name.

Provided Methods§

source

fn with_new_channel(self, guard: &mut CollectionGuard<'_>) -> Self

Registers a new_channel Muse function in self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WithNewChannel for Dynamic<Module>

source§

fn with_new_channel_named( self, name: impl Into<SymbolRef>, guard: &mut CollectionGuard<'_>, ) -> Self

source§

impl WithNewChannel for Rooted<Module>

source§

fn with_new_channel_named( self, name: impl Into<SymbolRef>, guard: &mut CollectionGuard<'_>, ) -> Self

source§

impl WithNewChannel for Vm

source§

fn with_new_channel_named( self, name: impl Into<SymbolRef>, guard: &mut CollectionGuard<'_>, ) -> Self

Implementors§