pub struct PickOptions<'a, T: SSS, S: Selection, A: ActionExt = NullActionExt> {
pub channel: Option<(RenderSender<A>, UnboundedReceiver<RenderCommand<A>>)>,
/* private fields */
}Expand description
Used to configure Matchmaker::pick with additional options.
Fields§
§channel: Option<(RenderSender<A>, UnboundedReceiver<RenderCommand<A>>)>§Experimental
Initializing code, i.e. to setup context in the running thread. Since render_loop runs on the same thread this isn’t actually necessary but maybe its a good idea to provide a channel for it anyway?
Implementations§
Source§impl<'a, T: SSS, S: Selection, A: ActionExt> PickOptions<'a, T, S, A>
impl<'a, T: SSS, S: Selection, A: ActionExt> PickOptions<'a, T, S, A>
pub const fn new() -> Self
pub fn with_binds(binds: BindMap<A>) -> Self
pub fn with_matcher(matcher: &'a mut Matcher) -> Self
pub fn binds(self, binds: BindMap<A>) -> Self
pub fn event_loop(self, event_loop: EventLoop<A>) -> Self
Sourcepub fn preview(self, preview: Preview) -> Self
pub fn preview(self, preview: Preview) -> Self
Set a Preview.
Overrides [Matchmaker::connect_preview].
pub fn matcher(self, matcher_config: Config) -> Self
pub fn ext_handler(self, handler: ActionExtHandler<T, S, A>) -> Self
pub fn ext_aliaser(self, aliaser: ActionAliaser<T, S, A>) -> Self
pub fn overlay<O>(self, overlay: O) -> Selfwhere
O: Overlay<A = A> + 'static,
pub fn overlay_config(self, overlay: OverlayConfig) -> Self
pub fn render_tx(&mut self) -> RenderSender<A>
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, S, A> Freeze for PickOptions<'a, T, S, A>
impl<'a, T, S, A = NullActionExt> !RefUnwindSafe for PickOptions<'a, T, S, A>
impl<'a, T, S, A = NullActionExt> !Send for PickOptions<'a, T, S, A>
impl<'a, T, S, A = NullActionExt> !Sync for PickOptions<'a, T, S, A>
impl<'a, T, S, A> Unpin for PickOptions<'a, T, S, A>
impl<'a, T, S, A> UnsafeUnpin for PickOptions<'a, T, S, A>
impl<'a, T, S, A = NullActionExt> !UnwindSafe for PickOptions<'a, T, S, A>
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> TransformExt for T
impl<T> TransformExt for T
fn transform<Q>(self, transform: impl FnOnce(T) -> Q) -> Q
fn modify<Q>(self, modify: impl FnOnce(&mut T) -> Q) -> T
Source§fn modify_if<Q>(self, condition: bool, modify: impl FnOnce(&mut T) -> Q) -> T
fn modify_if<Q>(self, condition: bool, modify: impl FnOnce(&mut T) -> Q) -> T
Example Read more