pub struct InputSources { /* private fields */ }Implementations§
Source§impl InputSources
impl InputSources
pub fn new( stdin: impl StdinReader + 'static, clipboard: impl ClipboardReader + 'static, responder: Option<Arc<dyn PromptResponder>>, ) -> Self
pub fn from_process() -> Self
pub fn with_stdin(self, stdin: impl StdinReader + 'static) -> Self
pub fn with_clipboard(self, clipboard: impl ClipboardReader + 'static) -> Self
pub fn with_responder(self, responder: Arc<dyn PromptResponder>) -> Self
pub fn stdin(&self) -> &dyn StdinReader
pub fn stdin_arc(&self) -> Arc<dyn StdinReader> ⓘ
pub fn clipboard(&self) -> &dyn ClipboardReader
pub fn clipboard_arc(&self) -> Arc<dyn ClipboardReader> ⓘ
pub fn responder(&self) -> Option<&dyn PromptResponder>
pub fn responder_arc(&self) -> Option<Arc<dyn PromptResponder>>
Trait Implementations§
Source§impl Clone for InputSources
impl Clone for InputSources
Source§fn clone(&self) -> InputSources
fn clone(&self) -> InputSources
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for InputSources
impl !UnwindSafe for InputSources
impl Freeze for InputSources
impl Send for InputSources
impl Sync for InputSources
impl Unpin for InputSources
impl UnsafeUnpin for InputSources
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