pub struct ModInternals { /* private fields */ }Expand description
Data that every module requires.
Implementations§
Source§impl ModInternals
impl ModInternals
Sourcepub fn new(
name: String,
config: ModuleConfig,
req_receiver: ReqReceiver,
rep_sender: ModRepSender,
poll_tickers: (Receiver<Instant>, Receiver<Instant>),
) -> Self
pub fn new( name: String, config: ModuleConfig, req_receiver: ReqReceiver, rep_sender: ModRepSender, poll_tickers: (Receiver<Instant>, Receiver<Instant>), ) -> Self
Constructs a new ModInternals.
Source§impl ModInternals
impl ModInternals
pub fn name(&self) -> &str
pub fn config(&self) -> &ModuleConfig
pub fn class(&self) -> &str
pub fn req_receiver(&self) -> &ReqReceiver
Trait Implementations§
Source§impl Clone for ModInternals
impl Clone for ModInternals
Source§fn clone(&self) -> ModInternals
fn clone(&self) -> ModInternals
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModInternals
impl RefUnwindSafe for ModInternals
impl Send for ModInternals
impl Sync for ModInternals
impl Unpin for ModInternals
impl UnwindSafe for ModInternals
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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