pub struct OptionsPageBuilder<A: PluginApp, S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<A: PluginApp, S: State> OptionsPageBuilder<A, S>
impl<A: PluginApp, S: State> OptionsPageBuilder<A, S>
Sourcepub fn build(self) -> OptionsPage<A>where
S: IsComplete,
pub fn build(self) -> OptionsPage<A>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn name(self, value: impl Into<String>) -> OptionsPageBuilder<A, SetName<S>>where
S::Name: IsUnset,
pub fn name(self, value: impl Into<String>) -> OptionsPageBuilder<A, SetName<S>>where
S::Name: IsUnset,
Required.
If conflicts with other plugins, Everything will append a “ (plugin.dll)“ suffix.
Sourcepub fn load(
self,
x: impl FnMut(OptionsPageLoadArgs) -> PageHandle<A> + 'static,
) -> OptionsPageBuilder<A, SetLoad<S>>where
S::Load: IsUnset,
pub fn load(
self,
x: impl FnMut(OptionsPageLoadArgs) -> PageHandle<A> + 'static,
) -> OptionsPageBuilder<A, SetLoad<S>>where
S::Load: IsUnset,
Required.
Sourcepub fn handle(
self,
value: UnsafeCell<Option<PageHandle<A>>>,
) -> OptionsPageBuilder<A, SetHandle<S>>where
S::Handle: IsUnset,
pub fn handle(
self,
value: UnsafeCell<Option<PageHandle<A>>>,
) -> OptionsPageBuilder<A, SetHandle<S>>where
S::Handle: IsUnset,
Sourcepub fn maybe_handle(
self,
value: Option<UnsafeCell<Option<PageHandle<A>>>>,
) -> OptionsPageBuilder<A, SetHandle<S>>where
S::Handle: IsUnset,
pub fn maybe_handle(
self,
value: Option<UnsafeCell<Option<PageHandle<A>>>>,
) -> OptionsPageBuilder<A, SetHandle<S>>where
S::Handle: IsUnset,
Auto Trait Implementations§
impl<A, S = Empty> !Freeze for OptionsPageBuilder<A, S>
impl<A, S = Empty> !RefUnwindSafe for OptionsPageBuilder<A, S>
impl<A, S = Empty> !Send for OptionsPageBuilder<A, S>
impl<A, S = Empty> !Sync for OptionsPageBuilder<A, S>
impl<A, S> Unpin for OptionsPageBuilder<A, S>
impl<A, S = Empty> !UnwindSafe for OptionsPageBuilder<A, S>
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> 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