struct ScreenPickerBodyProps<__ImplTrait0: Fn(Option<String>) + Copy + Send + Sync + 'static> {
displays: RwSignal<Vec<DisplaySourceView>>,
windows: RwSignal<Vec<WindowSourceView>>,
error_message: RwSignal<Option<String>>,
active_source_id: RwSignal<Option<String>>,
on_pick: __ImplTrait0,
}Expand description
Props for the ScreenPickerBody component.
§Required Props
- displays: [
RwSignal<Vec<DisplaySourceView>>] - windows: [
RwSignal<Vec<WindowSourceView>>] - error_message: [
RwSignal<Option<String>>] - active_source_id: [
RwSignal<Option<String>>] - on_pick: [
__ImplTrait0]
Fields§
§displays: RwSignal<Vec<DisplaySourceView>>§windows: RwSignal<Vec<WindowSourceView>>§error_message: RwSignal<Option<String>>§active_source_id: RwSignal<Option<String>>§on_pick: __ImplTrait0Implementations§
Source§impl<__ImplTrait0: Fn(Option<String>) + Copy + Send + Sync + 'static> ScreenPickerBodyProps<__ImplTrait0>
impl<__ImplTrait0: Fn(Option<String>) + Copy + Send + Sync + 'static> ScreenPickerBodyProps<__ImplTrait0>
Sourcefn builder() -> ScreenPickerBodyPropsBuilder<__ImplTrait0, ((), (), (), (), ())>
fn builder() -> ScreenPickerBodyPropsBuilder<__ImplTrait0, ((), (), (), (), ())>
Create a builder for building ScreenPickerBodyProps.
On the builder, call .displays(...), .windows(...), .error_message(...), .active_source_id(...), .on_pick(...) to set the values of the fields.
Finally, call .build() to create the instance of ScreenPickerBodyProps.
Trait Implementations§
Auto Trait Implementations§
impl<__ImplTrait0> Freeze for ScreenPickerBodyProps<__ImplTrait0>where
__ImplTrait0: Freeze,
impl<__ImplTrait0> RefUnwindSafe for ScreenPickerBodyProps<__ImplTrait0>where
__ImplTrait0: RefUnwindSafe,
impl<__ImplTrait0> Send for ScreenPickerBodyProps<__ImplTrait0>
impl<__ImplTrait0> Sync for ScreenPickerBodyProps<__ImplTrait0>
impl<__ImplTrait0> Unpin for ScreenPickerBodyProps<__ImplTrait0>where
__ImplTrait0: Unpin,
impl<__ImplTrait0> UnsafeUnpin for ScreenPickerBodyProps<__ImplTrait0>where
__ImplTrait0: UnsafeUnpin,
impl<__ImplTrait0> UnwindSafe for ScreenPickerBodyProps<__ImplTrait0>where
__ImplTrait0: 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<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
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§impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
§impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
§impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
§impl<T> SerializableKey for T
impl<T> SerializableKey for T
§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.