pub struct ResolvedHandler {
inner: Box<dyn SpecHandler>,
}Expand description
Owned spec handler built from resolved application inputs.
Fields§
§inner: Box<dyn SpecHandler>Implementations§
Source§impl ResolvedHandler
impl ResolvedHandler
Sourcepub fn new(handler: impl SpecHandler + 'static) -> Self
pub fn new(handler: impl SpecHandler + 'static) -> Self
Wraps a concrete resolved handler for chunk execution.
pub(crate) fn from_boxed(inner: Box<dyn SpecHandler>) -> Self
Sourcepub fn paperdoll(&self) -> Option<Paperdoll>
pub fn paperdoll(&self) -> Option<Paperdoll>
Returns the handler’s full character-sheet report.
pub(crate) fn into_inner(self) -> Box<dyn SpecHandler>
pub(crate) fn handler_mut(&mut self) -> &mut dyn SpecHandler
Trait Implementations§
Source§impl Debug for ResolvedHandler
impl Debug for ResolvedHandler
Source§impl From<Box<dyn SpecHandler>> for ResolvedHandler
impl From<Box<dyn SpecHandler>> for ResolvedHandler
Source§fn from(handler: Box<dyn SpecHandler>) -> Self
fn from(handler: Box<dyn SpecHandler>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResolvedHandler
impl !RefUnwindSafe for ResolvedHandler
impl Send for ResolvedHandler
impl !Sync for ResolvedHandler
impl Unpin for ResolvedHandler
impl UnsafeUnpin for ResolvedHandler
impl !UnwindSafe for ResolvedHandler
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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