pub struct ModuleInfo<T: ModuleDef> {
pub name: &'static str,
pub module: T,
}Fields§
§name: &'static str§module: TTrait Implementations§
Source§impl From<BufferModule> for ModuleInfo<BufferModule>
impl From<BufferModule> for ModuleInfo<BufferModule>
Source§fn from(val: BufferModule) -> Self
fn from(val: BufferModule) -> Self
Converts to this type from the input type.
Source§impl From<CryptoModule> for ModuleInfo<CryptoModule>
impl From<CryptoModule> for ModuleInfo<CryptoModule>
Source§fn from(val: CryptoModule) -> Self
fn from(val: CryptoModule) -> Self
Converts to this type from the input type.
Source§impl From<EventsModule> for ModuleInfo<EventsModule>
impl From<EventsModule> for ModuleInfo<EventsModule>
Source§fn from(val: EventsModule) -> Self
fn from(val: EventsModule) -> Self
Converts to this type from the input type.
Source§impl From<FsPromisesModule> for ModuleInfo<FsPromisesModule>
impl From<FsPromisesModule> for ModuleInfo<FsPromisesModule>
Source§fn from(val: FsPromisesModule) -> Self
fn from(val: FsPromisesModule) -> Self
Converts to this type from the input type.
Source§impl From<PathModule> for ModuleInfo<PathModule>
impl From<PathModule> for ModuleInfo<PathModule>
Source§fn from(val: PathModule) -> Self
fn from(val: PathModule) -> Self
Converts to this type from the input type.
Source§impl From<PerfHooksModule> for ModuleInfo<PerfHooksModule>
impl From<PerfHooksModule> for ModuleInfo<PerfHooksModule>
Source§fn from(val: PerfHooksModule) -> Self
fn from(val: PerfHooksModule) -> Self
Converts to this type from the input type.
Source§impl From<StreamWebModule> for ModuleInfo<StreamWebModule>
impl From<StreamWebModule> for ModuleInfo<StreamWebModule>
Source§fn from(val: StreamWebModule) -> Self
fn from(val: StreamWebModule) -> Self
Converts to this type from the input type.
Source§impl From<StringDecoderModule> for ModuleInfo<StringDecoderModule>
impl From<StringDecoderModule> for ModuleInfo<StringDecoderModule>
Source§fn from(val: StringDecoderModule) -> Self
fn from(val: StringDecoderModule) -> Self
Converts to this type from the input type.
Source§impl From<ZlibModule> for ModuleInfo<ZlibModule>
impl From<ZlibModule> for ModuleInfo<ZlibModule>
Source§fn from(val: ZlibModule) -> Self
fn from(val: ZlibModule) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for ModuleInfo<T>where
T: Freeze,
impl<T> RefUnwindSafe for ModuleInfo<T>where
T: RefUnwindSafe,
impl<T> Send for ModuleInfo<T>where
T: Send,
impl<T> Sync for ModuleInfo<T>where
T: Sync,
impl<T> Unpin for ModuleInfo<T>where
T: Unpin,
impl<T> UnsafeUnpin for ModuleInfo<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ModuleInfo<T>where
T: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more