Skip to main content

Socket

Struct Socket 

Source
pub struct Socket { /* private fields */ }
Available on crate feature socket only.

Implementations§

Source§

impl Socket

Source

pub async fn connect(filepath: &Path) -> Result<Self, IoError>

Source

pub async fn recv<T: DeserializeOwned>(&mut self) -> Output<T, AnyhowError>

Source

pub async fn exchange<X: Serialize, Y: DeserializeOwned>( &mut self, input: impl Into<X>, ) -> Result<Y, AnyhowError>

Source

pub async fn request<T: Request>( &mut self, request: T, ) -> Result<T::Response, AnyhowError>

Source

pub async fn respond<T: Request>( &mut self, response: &T::Response, ) -> Result<(), AnyhowError>

Source

pub async fn serialize<T: Request>( &mut self, request: T, ) -> Result<(), AnyhowError>

Trait Implementations§

Source§

impl From<Framed<UnixStream, LengthDelimitedCodec>> for Socket

Source§

fn from(value: Framed<UnixStream, LengthDelimitedCodec>) -> Self

Converts to this type from the input type.
Source§

impl From<UnixStream> for Socket

Source§

fn from(unix_stream: UnixStream) -> Self

Converts to this type from the input type.
Source§

impl<T: Serialize> Sink<T> for Socket

Source§

type Error = Error

The type of value produced by the sink when an error occurs.
Source§

fn poll_ready( self: Pin<&mut Self>, context: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>

Attempts to prepare the Sink to receive a value. Read more
Source§

fn start_send(self: Pin<&mut Self>, item: T) -> Result<(), Self::Error>

Begin the process of sending a value to the sink. Each call to this function must be preceded by a successful call to poll_ready which returned Poll::Ready(Ok(())). Read more
Source§

fn poll_flush( self: Pin<&mut Self>, context: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>

Flush any remaining output from this sink. Read more
Source§

fn poll_close( self: Pin<&mut Self>, context: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>

Flush any remaining output and close this sink, if necessary. Read more

Auto Trait Implementations§

§

impl !Freeze for Socket

§

impl RefUnwindSafe for Socket

§

impl Send for Socket

§

impl Sync for Socket

§

impl Unpin for Socket

§

impl UnwindSafe for Socket

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, D: AdaptFrom<S, Swp, Dwp, T>,

Source§

fn adapt_into_using<M>(self, method: M) -> D
where M: TransformMatrix<T>,

Convert the source color to the destination color using the specified method.
Source§

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default.
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

Source§

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
Source§

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

Source§

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

Source§

type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<T, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

Source§

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromAngle<T> for T

Source§

fn from_angle(angle: T) -> T

Performs a conversion from angle.
Source§

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

Source§

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> IntoAngle<U> for T
where U: FromAngle<T>,

Source§

fn into_angle(self) -> U

Performs a conversion into T.
Source§

impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for U
where T: Cam16FromUnclamped<WpParam, U>,

Source§

type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

Source§

fn into_color(self) -> U

Convert into T with values clamped to the color defined bounds Read more
Source§

impl<T, U> IntoColorUnclamped<U> for T
where U: FromColorUnclamped<T>,

Source§

fn into_color_unclamped(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> IntoStimulus<T> for T

Source§

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, Item> SinkExt<Item> for T
where T: Sink<Item> + ?Sized,

Source§

fn with<U, Fut, F, E>(self, f: F) -> With<Self, Item, U, Fut, F>
where F: FnMut(U) -> Fut, Fut: Future<Output = Result<Item, E>>, E: From<Self::Error>, Self: Sized,

Composes a function in front of the sink. Read more
Source§

fn with_flat_map<U, St, F>(self, f: F) -> WithFlatMap<Self, Item, U, St, F>
where F: FnMut(U) -> St, St: Stream<Item = Result<Item, Self::Error>>, Self: Sized,

Composes a function in front of the sink. Read more
Source§

fn sink_map_err<E, F>(self, f: F) -> SinkMapErr<Self, F>
where F: FnOnce(Self::Error) -> E, Self: Sized,

Transforms the error returned by the sink.
Source§

fn sink_err_into<E>(self) -> SinkErrInto<Self, Item, E>
where Self: Sized, Self::Error: Into<E>,

Map this sink’s error to a different error type using the Into trait. Read more
Source§

fn buffer(self, capacity: usize) -> Buffer<Self, Item>
where Self: Sized,

Available on crate feature alloc only.
Adds a fixed-size buffer to the current sink. Read more
Source§

fn close(&mut self) -> Close<'_, Self, Item>
where Self: Unpin,

Close the sink.
Source§

fn fanout<Si>(self, other: Si) -> Fanout<Self, Si>
where Self: Sized, Item: Clone, Si: Sink<Item, Error = Self::Error>,

Fanout items to multiple sinks. Read more
Source§

fn flush(&mut self) -> Flush<'_, Self, Item>
where Self: Unpin,

Flush the sink, processing all pending items. Read more
Source§

fn send(&mut self, item: Item) -> Send<'_, Self, Item>
where Self: Unpin,

A future that completes after the given item has been fully processed into the sink, including flushing. Read more
Source§

fn feed(&mut self, item: Item) -> Feed<'_, Self, Item>
where Self: Unpin,

A future that completes after the given item has been received by the sink. Read more
Source§

fn send_all<'a, St>(&'a mut self, stream: &'a mut St) -> SendAll<'a, Self, St>
where St: TryStream<Ok = Item, Error = Self::Error> + Stream + Unpin + ?Sized, Self: Unpin,

A future that completes after the given stream has been fully processed into the sink, including flushing. Read more
Source§

fn left_sink<Si2>(self) -> Either<Self, Si2>
where Si2: Sink<Item, Error = Self::Error>, Self: Sized,

Wrap this sink in an Either sink, making it the left-hand variant of that Either. Read more
Source§

fn right_sink<Si1>(self) -> Either<Si1, Self>
where Si1: Sink<Item, Error = Self::Error>, Self: Sized,

Wrap this stream in an Either stream, making it the right-hand variant of that Either. Read more
Source§

fn poll_ready_unpin( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
where Self: Unpin,

A convenience method for calling Sink::poll_ready on Unpin sink types.
Source§

fn start_send_unpin(&mut self, item: Item) -> Result<(), Self::Error>
where Self: Unpin,

A convenience method for calling Sink::start_send on Unpin sink types.
Source§

fn poll_flush_unpin( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
where Self: Unpin,

A convenience method for calling Sink::poll_flush on Unpin sink types.
Source§

fn poll_close_unpin( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
where Self: Unpin,

A convenience method for calling Sink::poll_close on Unpin sink types.
Source§

impl<T, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

Source§

type Error = <C as TryFromComponents<T>>::Error

The error for when try_into_colors fails to cast.
Source§

fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>

Try to cast this collection of color components into a collection of colors. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

Source§

fn try_into_color(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
Source§

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

Source§

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
Source§

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

Source§

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
Source§

impl<T> Utils for T
where T: ?Sized,

Source§

const CRLF: &str = "\r\n"

Source§

const DEFAULT_ROPE_BUILDER_BUFFER_SIZE: usize = 8192

Source§

const IS_EXTENDED: bool = true

Source§

const LF: &str = "\n"

Source§

const READ_FROM_CLIPBOARD_COMMAND: &str = "pbpaste"

Source§

const WRITE_TO_CLIPBOARD_COMMAND: &str = "pbcopy"

Source§

async fn abort_all_and_wait<T: 'static>(&mut self)
where Self: BorrowMut<JoinSet<T>>,

Available on crate feature async only.
Source§

fn absolute_utf8(&self) -> Result<Cow<'_, Utf8Path>, IoError>
where Self: AsRef<Utf8Path>,

Available on crate feature fs only.
Source§

async fn achain<T: Future>(self, rhs: T) -> T::Output
where Self: Future + Sized,

Source§

fn add_span<'a, T: Into<Span<'a>>>(self, span: T) -> Line<'a>
where Self: Into<Line<'a>>,

Available on crate feature tui only.
Source§

fn anyhow_msg_error(self) -> AnyhowError
where Self: 'static + Debug + Display + Send + Sized + Sync,

Available on crate features async or fs or process or reqwest or socket or tui only.
Source§

fn anyhow_error(self) -> AnyhowError
where Self: Into<AnyhowError>,

Available on crate features async or fs or process or reqwest or socket or tui only.
Source§

fn anyhow_result<T, E: Into<AnyhowError>>(self) -> Result<T, AnyhowError>
where Self: Is<Result<T, E>>,

Available on crate features async or fs or process or reqwest or socket or tui only.
Source§

fn arc(self) -> Arc<Self>
where Self: Sized,

Source§

async fn async_with<T>(self, next: impl Future<Output = T>) -> T
where Self: Future + Sized,

Source§

fn as_borrowed<'a, B: ?Sized + ToOwned>(&'a self) -> &'a B
where Self: Borrow<Cow<'a, B>>,

Source§

fn as_immut(&mut self) -> &Self

Source§

fn as_ptr(&self) -> *const Self

Source§

fn as_ptr_mut(&mut self) -> *mut Self

Source§

fn as_utf8(&self) -> Result<&str, Utf8Error>
where Self: AsRef<[u8]>,

Source§

fn as_utf8_path(&self) -> &Utf8Path
where Self: AsRef<Utf8Path>,

Available on crate feature fs only.
Source§

fn as_rope_slice(&self) -> RopeSlice<'_>
where Self: Borrow<Rope>,

Available on crate feature ropey only.
Source§

fn as_valuable(&self) -> Value<'_>
where Self: AsValuable,

Available on crate feature serde only.
Source§

fn bordered_block<'a>(self) -> Block<'a>
where Self: Into<Line<'a>> + Sized,

Available on crate feature tui only.
Source§

fn buf_reader(self) -> BufReader<Self>
where Self: Read + Sized,

Source§

fn buf_reader_async(self) -> TokioBufReader<Self>
where Self: AsyncRead + Sized,

Available on crate features async or ropey only.
Source§

fn buf_writer(self) -> BufWriter<Self>
where Self: Write + Sized,

Source§

fn buf_writer_async(self) -> TokioBufWriter<Self>
where Self: AsyncWrite + Sized,

Available on crate feature async only.
Source§

fn cast_or_max<T: Bounded + NumCast>(self) -> T
where Self: Sized + ToPrimitive,

Available on crate features ropey or misc or tui only.
Source§

fn cast_ref<T>(&self) -> &T

Source§

fn cat<T: Display>(&self, rhs: T) -> String
where Self: Display,

Source§

fn check_next<T>(self) -> Result<T, AnyhowError>
where Self: Is<Option<T>>,

Available on crate features async or fs or process or reqwest or socket or tui only.
Source§

fn check_present<T>(self) -> Result<T, AnyhowError>
where Self: Is<Option<T>>,

Available on crate features async or fs or process or reqwest or socket or tui only.
Source§

async fn check_status(self) -> Result<Response, AnyhowError>
where Self: Is<Response>,

Available on crate feature reqwest only.
Source§

fn clamped(self, min: Self, max: Self) -> Self
where Self: PartialOrd + Sized,

Available on crate features ropey or misc or tui only.
Source§

fn convert<T: From<Self>>(self) -> T
where Self: Sized,

Source§

fn contains_eq<Q, K>(&self, query: Q) -> bool
where Self: AsRef<[K]>, for<'a> &'a K: PartialEq<Q>,

Source§

fn context_path<T, E, C: 'static + Display + Send + Sync, P: AsRef<Path>>( self, context: C, path: P, ) -> Result<T, AnyhowError>
where Self: Context<T, E> + Sized,

Available on crate features async or fs or process or reqwest or socket or tui only.
Source§

fn copied(&self) -> Self
where Self: Copy + Sized,

Source§

async fn write_to_clipboard(&self) -> Result<ExitStatus, AnyhowError>
where Self: AsRef<[u8]>,

Available on crate feature process only.
Source§

async fn read_from_clipboard() -> Result<String, AnyhowError>

Available on crate feature process only.
Source§

fn create(&self) -> Result<File, IoError>
where Self: AsRef<Path>,

Source§

fn create_dir_all(&self) -> Result<(), IoError>
where Self: AsRef<Path>,

Source§

fn cycle_in_place(&mut self, amount: isize, total: usize)
where Self: BorrowMut<usize>,

Available on crate feature misc only.
Source§

fn debug(self) -> Debugged<Self>
where Self: Sized,

Available on crate feature fmt only.
Source§

fn decrement(&mut self)
where Self: One + SaturatingSub,

Available on crate feature tui only.
Source§

fn decremented(&self) -> Self
where Self: One + SaturatingSub,

Available on crate feature tui only.
Source§

fn deserialize_from_seq<'de, D: Deserializer<'de>, X: Deserialize<'de>, Y, E: Display, F: Fn(X) -> Result<Y, E>>( deserializer: D, func: F, ) -> Result<Self, D::Error>
where Self: Default + Extend<Y>,

Available on crate features serde or tui only.
Source§

fn end_err<T>(self) -> Output<T, Self>
where Self: Sized,

Available on crate feature output only.
Source§

fn end_ok<T, E>(&self) -> Output<T, E>

Available on crate feature output only.
Source§

fn err<T>(self) -> Result<T, Self>
where Self: Sized,

Source§

fn expand_user(&self) -> Cow<'_, Utf8Path>
where Self: AsRef<str>,

Available on crate feature fs only.
Source§

fn unexpand_user(&self) -> Cow<'_, Utf8Path>
where Self: AsRef<str>,

Available on crate feature fs only.
Source§

fn extended_graphemes(&self) -> Graphemes<'_>
where Self: AsRef<str>,

Available on crate features ropey or tui only.
Source§

fn extended_grapheme_indices(&self) -> GraphemeIndices<'_>
where Self: AsRef<str>,

Available on crate features ropey or tui only.
Source§

fn extended_graphemes_at<'a>( self, extended_graphemes_index_range: Range<usize>, ) -> impl Iterator<Item = &'a str>
where Self: Is<RopeSlice<'a>>,

Available on crate feature ropey only.
Source§

fn extended_graphemes_at_rect<'a>( self, lines_index_range: Range<usize>, extended_graphemes_index_range: Range<usize>, ) -> impl Iterator<Item = impl Iterator<Item = &'a str>>
where Self: Is<RopeSlice<'a>>,

Available on crate feature ropey only.
Source§

fn extended_grapheme_substring(&self, range: Range<usize>) -> &str
where Self: AsRef<str>,

Available on crate features ropey or tui only.
Source§

fn filter_sync( self, func: impl FnMut(&Self::Item) -> bool, ) -> Filter<Self, Ready<bool>, impl FnMut(&Self::Item) -> Ready<bool>>
where Self: Sized + StreamExt,

Available on crate feature async only.
Source§

fn file_name_ok(&self) -> Result<&str, AnyhowError>
where Self: AsRef<Utf8Path>,

Available on crate feature fs only.
Source§

fn find_eq<Q, K>(&self, query: Q) -> Option<(usize, &K)>
where Self: AsRef<[K]>, for<'a> &'a K: PartialEq<Q>,

Source§

fn has_happened(self) -> bool
where Self: Is<Instant>,

Source§

fn home_dirpath() -> Option<Utf8PathBuf>

Available on crate feature fs only.
Source§

fn if_else<T>(self, true_value: T, false_value: T) -> T
where Self: Is<bool>,

Source§

fn immutable(&mut self) -> &Self

Source§

fn increment(&mut self)
where Self: One + SaturatingAdd,

Available on crate feature tui only.
Source§

fn incremented(&self) -> Self
where Self: One + SaturatingAdd,

Available on crate feature tui only.
Source§

fn index_into<T: Index<Self> + ?Sized>(self, collection: &T) -> &T::Output
where Self: Sized,

Source§

fn index_into_mut<T: IndexMut<Self> + ?Sized>( self, collection: &mut T, ) -> &mut T::Output
where Self: Sized,

Source§

fn insert_mut<'a, K: 'a + Eq + Hash, V>( &'a mut self, key: K, value: V, ) -> &'a mut V
where Self: BorrowMut<HashMap<K, V>>,

Source§

fn interpolate( self, old_min: impl ToPrimitive, old_max: impl ToPrimitive, new_min: impl ToPrimitive, new_max: impl ToPrimitive, ) -> Self
where Self: Bounded + NumCast + ToPrimitive,

Available on crate features ropey or misc or tui only.
Source§

fn into_box(self) -> Box<Self>
where Self: Sized,

Source§

fn into_break<C>(self) -> ControlFlow<Self, C>
where Self: Sized,

Source§

fn into_color<T>(self) -> T
where Self: IntoColor<T>,

Available on crate feature tui only.
Source§

fn into_common<T>(self) -> T
where Self: Is<Result<T, T>>,

Source§

fn into_continue<B>(self) -> ControlFlow<B, Self>
where Self: Sized,

Source§

fn into_cow_owned<B: ?Sized + ToOwned<Owned = Self>>(self) -> Cow<'static, B>
where Self: Sized,

Source§

fn into_endpoint(self) -> impl Endpoint<Output = Self>
where Self: Clone + IntoResponse + Sync,

Available on crate feature poem only.
Source§

fn into_interval(self) -> Interval
where Self: Is<Duration>,

Available on crate feature async only.
Source§

fn into_left<R>(self) -> Either<Self, R>
where Self: Sized,

Available on crate feature async only.
Source§

fn into_line<'a>(self) -> Line<'a>
where Self: Into<Cow<'a, str>>,

Available on crate feature tui only.
Source§

fn into_manually_drop(self) -> ManuallyDrop<Self>
where Self: Sized,

Source§

fn into_stream_reader<B: Buf, E: Into<IoError>>(self) -> StreamReader<Self, B>
where Self: Sized + Stream<Item = Result<B, E>>,

Available on crate feature async only.
Source§

fn into_length_delimited_frames(self) -> Framed<Self, LengthDelimitedCodec>
where Self: Sized,

Available on crate feature async only.
Source§

fn into_line_frames(self) -> Framed<Self, LinesCodec>
where Self: Sized,

Available on crate feature async only.
Source§

fn into_utf8(self) -> Result<String, FromUtf8Error>
where Self: Is<Vec<u8>>,

Source§

fn into_right<L>(self) -> Either<L, Self>
where Self: Sized,

Available on crate feature async only.
Source§

fn into_parse_request_payload_result<T>( self, ) -> Result<T, ParseRequestPayloadError>
where Self: Is<Result<T, SerdeJsonError>>,

Available on crate feature poem only.
Source§

async fn into_select<T: Future>(self, rhs: T) -> Either<Self::Output, T::Output>
where Self: Future + Sized,

Available on crate feature async only.
Source§

fn into_status<T, E>(self) -> Status<T, E>
where Self: Is<Result<T, E>>,

Available on crate feature tracing only.
Source§

fn into_stream(self) -> Self::Stream
where Self: IntoStream + Sized,

Available on crate feature async only.
Source§

fn into_string(self) -> Result<String, AnyhowError>
where Self: Is<PathBuf>,

Available on crate feature fs only.
Source§

fn into_value_from_json<T: DeserializeOwned>(self) -> Result<T, SerdeJsonError>
where Self: Is<Json>,

Available on crate feature serde only.
Source§

fn invalid_utf8_err<T>(&self) -> Result<T, AnyhowError>
where Self: Debug,

Available on crate feature fs only.
Source§

fn io_error(self) -> IoError
where Self: Into<Box<dyn StdError + Send + Sync>>,

Source§

fn io_result<T, E: Into<Box<dyn StdError + Send + Sync>>>( self, ) -> Result<T, IoError>
where Self: Is<Result<T, E>>,

Source§

fn is_non_empty<T: Iterator>(&mut self) -> bool
where Self: BorrowMut<Peekable<T>>,

Source§

fn is_empty<T: Iterator>(&mut self) -> bool
where Self: BorrowMut<Peekable<T>>,

Source§

fn is_less_than<T: PartialOrd>(self, rhs: T) -> bool
where Self: Into<T>,

Source§

fn is_positive(&self) -> bool
where Self: PartialOrd + Zero,

Available on crate features ropey or misc or tui only.
Source§

fn is_newline(&self) -> bool
where Self: AsRef<str>,

Source§

async fn join_all<T>(self) -> T
where Self: IntoIterator<Item: Future> + Sized, T: FromIterator<<Self::Item as Future>::Output>,

Available on crate feature async only.
Source§

fn len_extended_graphemes(&self) -> usize
where Self: AsRef<str>,

Available on crate features ropey or tui only.
Source§

fn level<T, E>(&self) -> Level
where Self: Borrow<Result<T, E>>,

Available on crate feature tracing only.
Source§

fn log_error(&self)
where Self: Display,

Available on crate features tui or tracing only.
Source§

fn log_if_error<T, E: Display>(self) -> Self
where Self: Borrow<Result<T, E>> + Sized,

Available on crate features tui or tracing only.
Source§

fn map_collect<Y, T: FromIterator<Y>>( self, func: impl FnMut(Self::Item) -> Y, ) -> T
where Self: IntoIterator + Sized,

Source§

fn map_into<Y, X: Into<Y>>(self) -> Option<Y>
where Self: Is<Option<X>>,

Source§

fn map_as_ref<'a, Y: ?Sized, X: 'a + AsRef<Y>>(&'a self) -> Option<&'a Y>
where Self: Borrow<Option<X>>,

Source§

fn mem_drop(self)
where Self: Sized,

Source§

fn mem_replace(&mut self, value: Self) -> Self
where Self: Sized,

Source§

fn mem_take(&mut self) -> Self
where Self: Default,

Source§

async fn metadata_async(&self) -> Result<Metadata, IoError>
where Self: AsRef<Path>,

Available on crate feature async only.
Source§

fn mut_push<T>(&mut self, item: T) -> &mut T
where Self: BorrowMut<Vec<T>>,

Source§

fn iter_next(&mut self) -> Option<Self::Item>
where Self: Iterator,

Source§

fn none<T>(&self) -> Option<T>

Source§

fn num_lines_and_extended_graphemes<'a>(self) -> PointUsize
where Self: Is<RopeSlice<'a>>,

Available on crate feature ropey only.
Source§

fn ok<E>(self) -> Result<Self, E>
where Self: Sized,

Source§

fn once(self) -> Once<Self>
where Self: Sized,

Source§

fn open(&self) -> Result<File, IoError>
where Self: AsRef<Path>,

Source§

async fn open_async(&self) -> Result<TokioFile, IoError>
where Self: AsRef<Path>,

Available on crate features ropey or async only.
Source§

fn option_display(self) -> OptionDisplay<Self>
where Self: Sized,

Available on crate feature fmt only.
Source§

fn output_ok<E>(self) -> Output<Self, E>
where Self: Sized,

Available on crate feature output only.
Source§

fn pair<T>(self, rhs: T) -> (Self, T)
where Self: Sized,

Source§

fn pin(self) -> Pin<Box<Self>>
where Self: Sized,

Source§

fn pipe<X, Y, Z, F: FnMut(Y) -> Z>(self, func: F) -> impl FnMut(X) -> Z
where Self: Sized + FnMut(X) -> Y,

Source§

fn poll_ready(self) -> Poll<Self>
where Self: Sized,

Source§

fn pipe_into<T, F: FnOnce(Self) -> T>(self, func: F) -> T
where Self: Sized,

Source§

fn poem_binary(self) -> PoemBinary<Self>
where Self: Sized,

Available on crate feature poem only.
Source§

fn poem_binary_message(self) -> PoemMessage
where Self: Is<Vec<u8>>,

Available on crate feature poem only.
Source§

fn poem_json(self) -> PoemJson<Self>
where Self: Sized,

Available on crate feature poem only.
Source§

fn poem_stream_body<O: 'static + Into<Bytes>, E: 'static + Into<IoError>>( self, ) -> PoemBinary<PoemBody>
where Self: 'static + Send + Sized + Stream<Item = Result<O, E>>,

Available on crate feature poem only.
Source§

fn poem_text_message(self) -> PoemMessage
where Self: Is<String>,

Available on crate feature poem only.
Source§

fn println(&self)
where Self: Display,

Source§

fn print(&self)
where Self: Display,

Source§

fn push_to<T: Extend<Self>>(self, collection: &mut T)
where Self: Sized,

Source§

fn push_all_to<T: Extend<Self::Item>>(self, collection: &mut T)
where Self: IntoIterator + Sized,

Source§

fn query_all<T: Serialize>( self, name: &str, values: impl IntoIterator<Item = T>, ) -> RequestBuilder
where Self: Is<RequestBuilder>,

Available on crate feature reqwest only.
Source§

fn query_one<T: Serialize>( self, name: &str, value: impl Into<Option<T>>, ) -> RequestBuilder
where Self: Is<RequestBuilder>,

Available on crate feature reqwest only.
Source§

fn range_from_len(self, len: Self) -> Range<Self>
where Self: Add<Output = Self> + Copy,

Source§

fn ratatui_rect(self) -> Rect
where Self: Into<(u16, u16)>,

Available on crate feature tui only.
Source§

async fn read_to_string_async(&mut self) -> Result<String, IoError>
where Self: AsyncReadExt + Unpin,

Available on crate features async or process only.
Source§

async fn read_to_string_fs_async(self) -> ReadValue<Self>
where Self: AsRef<Path> + Sized,

Available on crate feature async only.
Source§

fn ready(self) -> Ready<Self>
where Self: Sized,

Source§

fn ref_immut(&self) -> &Self

Source§

fn ref_mut(&mut self) -> &mut Self

Source§

fn render_to(self, frame: &mut Frame<'_>, rect: Rect)
where Self: Widget + Sized,

Available on crate feature tui only.
Source§

fn repeat(self) -> Repeat<Self>
where Self: Clone,

Source§

fn result_display(self) -> ResultDisplay<Self>
where Self: Sized,

Available on crate feature fmt only.
Source§

fn reversed<X, Y>(self) -> (Y, X)
where Self: Is<(X, Y)>,

Source§

async fn rope<const N: usize>(&self) -> Result<Rope, IoError>
where Self: AsRef<Path>,

Available on crate feature ropey only.
Source§

async fn run_for( self, duration: Duration, ) -> Result<Self, RunForError<Self::Output>>
where Self: Future + Sized + Unpin,

Available on crate feature async only.
Source§

async fn run_local(self) -> Self::Output
where Self: Future + Sized,

Available on crate feature async only.
Source§

fn remove_file(&self) -> Result<(), IoError>
where Self: AsRef<Path>,

Source§

async fn respond_to<T: Request<Response = Self>>( &self, socket: impl BorrowMut<Socket>, ) -> Result<(), AnyhowError>

Available on crate feature socket only.
Source§

fn saturating_chunks_at_extended_grapheme<'a>( self, extended_grapheme_index: usize, ) -> Chunks<'a>
where Self: Is<RopeSlice<'a>>,

Available on crate feature ropey only.
Source§

fn saturating_chunks_at_char<'a>(self, char_index: usize) -> Chunks<'a>
where Self: Is<RopeSlice<'a>>,

Available on crate feature ropey only.
Source§

fn saturating_lines_at<'a>(self, line_index: usize) -> Lines<'a>
where Self: Is<RopeSlice<'a>>,

Available on crate feature ropey only.
Source§

fn saturating_add_assign(&mut self, rhs: &Self)
where Self: SaturatingAdd,

Available on crate feature tui only.
Source§

fn saturating_add_or_sub_in_place_with_max( &mut self, rhs: Self, max_value: Self, add: bool, )

Available on crate feature tui only.
Source§

fn saturating_sub_assign(&mut self, rhs: &Self)
where Self: SaturatingSub,

Available on crate feature tui only.
Source§

fn scroll_count( &self, scroll_count: ScrollCount, orientation: Orientation, ) -> usize
where Self: Scrollable,

Available on crate feature tui only.
Source§

fn max_scroll_offset( &self, scroll_when: ScrollWhen, content_size: PointUsize, ) -> PointUsize
where Self: Scrollable,

Available on crate feature tui only.
Source§

fn scroll( &mut self, scroll_count: ScrollCount, scroll_when: ScrollWhen, content_size: PointUsize, orientation: Orientation, add: bool, )
where Self: Scrollable,

Available on crate feature tui only.
Source§

fn scroll_down( &mut self, scroll_count: ScrollCount, content_size: PointUsize, scroll_when: ScrollWhen, )
where Self: Scrollable,

Available on crate feature tui only.
Source§

fn scroll_up( &mut self, scroll_count: ScrollCount, content_size: PointUsize, scroll_when: ScrollWhen, )
where Self: Scrollable,

Available on crate feature tui only.
Source§

fn scroll_left( &mut self, scroll_count: ScrollCount, content_size: PointUsize, scroll_when: ScrollWhen, )
where Self: Scrollable,

Available on crate feature tui only.
Source§

fn scroll_right( &mut self, scroll_count: ScrollCount, content_size: PointUsize, scroll_when: ScrollWhen, )
where Self: Scrollable,

Available on crate feature tui only.
Source§

async fn select_all(self) -> <<Self as IntoIterator>::Item as Future>::Output
where Self: IntoIterator + Sized, <Self as IntoIterator>::Item: Future,

Available on crate feature async only.
Source§

async fn send_to<T: Sink<Self> + Unpin>(self, sink: T) -> Result<(), T::Error>
where Self: Sized,

Available on crate feature async only.
Source§

fn send_to_oneshot(self, sender: OneshotSender<Self>) -> Result<(), AnyhowError>
where Self: Sized,

Available on crate feature async only.
Source§

fn set_true(&mut self) -> bool
where Self: BorrowMut<bool>,

Source§

fn set_false(&mut self) -> bool
where Self: BorrowMut<bool>,

Source§

fn size<T: SaturatingSub>(&self) -> T
where Self: Borrow<Range<T>>,

Available on crate feature tui only.
Source§

fn sleep(self) -> Sleep
where Self: Is<Duration>,

Available on crate feature async only.
Source§

fn some(self) -> Option<Self>
where Self: Sized,

Source§

fn spawn_task(self) -> JoinHandle<Self::Output>
where Self: 'static + Future + Sized + Send, Self::Output: 'static + Send,

Available on crate feature async only.
Source§

fn split_along_extended_graphemes(&self, max_prefix_size: usize) -> (&str, &str)
where Self: AsRef<str>,

Available on crate features ropey or tui only.
Source§

fn split_at(&self, index: usize) -> (&str, &str)
where Self: AsRef<str>,

Source§

fn substr_interval(&self, query: &[u8]) -> Option<(usize, usize)>
where Self: AsRef<[u8]>,

Source§

fn take_json<T: DeserializeOwned>( &mut self, index: impl SerdeJsonIndex, ) -> Result<T, SerdeJsonError>
where Self: BorrowMut<Json>,

Available on crate feature serde only.
Source§

fn timeout(self, duration: Duration) -> Timeout<Self>
where Self: Future + Sized,

Available on crate feature async only.
Source§

fn to_cow_borrowed(&self) -> Cow<'_, Self>
where Self: ToOwned,

Source§

fn toggle(&mut self)
where Self: BorrowMut<bool>,

Source§

fn to_json(&self) -> Result<Json, SerdeJsonError>
where Self: Serialize,

Available on crate feature serde only.
Source§

fn to_json_byte_str(&self) -> Result<Vec<u8>, SerdeJsonError>
where Self: Serialize,

Available on crate feature serde only.
Source§

fn to_json_object(&self, key: &str) -> Json
where Self: Serialize,

Available on crate feature serde only.
Source§

fn to_json_str(&self) -> Result<String, SerdeJsonError>
where Self: Serialize,

Available on crate feature serde only.
Source§

fn to_rmp_byte_str(&self) -> Result<Vec<u8>, RmpEncodeError>
where Self: Serialize,

Available on crate feature rmp only.
Source§

fn to_uri(&self) -> Result<String, IoError>
where Self: AsRef<Utf8Path>,

Available on crate feature fs only.
Source§

fn to_value_from_json_slice<'a, T: Deserialize<'a>>( &'a self, ) -> Result<T, SerdeJsonError>
where Self: AsRef<[u8]>,

Available on crate feature serde only.
Source§

fn to_value_from_json_reader<T: DeserializeOwned>( self, ) -> Result<T, SerdeJsonError>
where Self: Read + Sized,

Available on crate feature serde only.
Source§

fn to_value_from_rmp_slice<'a, T: Deserialize<'a>>( &'a self, ) -> Result<T, RmpDecodeError>
where Self: AsRef<[u8]>,

Available on crate feature rmp only.
Source§

fn to_value_from_value<T: DeserializeOwned>(&self) -> Result<T, SerdeJsonError>
where Self: Serialize,

Available on crate feature serde only.
Source§

fn to_value_from_yaml_slice<'a, T: Deserialize<'a>>( &'a self, ) -> Result<T, SerdeYamlError>
where Self: AsRef<[u8]>,

Available on crate feature serde only.
Source§

fn to_value_from_yaml_reader<T: DeserializeOwned>( self, ) -> Result<T, SerdeYamlError>
where Self: Read + Sized,

Available on crate feature serde only.
Source§

fn translate_to(&mut self, value: Self) -> Self
where Self: SaturatingSub,

Available on crate feature tui only.
Source§

fn transpose(&self) -> Self
where Self: Transpose + Sized,

Available on crate features ropey or tui only.
Source§

fn try_convert<T: TryFrom<Self>>(self) -> Result<T, T::Error>
where Self: Sized,

Source§

async fn try_join_all<T, E>(self) -> Result<T, E>
where Self: IntoIterator<Item: TryFuture> + Sized, T: FromIterator<<Self::Item as TryFuture>::Ok>, E: From<<Self::Item as TryFuture>::Error>,

Available on crate feature async only.
Source§

async fn try_wait<T, E: 'static + Send + Sync>(self) -> Result<T, AnyhowError>
where Self: Is<JoinHandle<Result<T, E>>>, AnyhowError: From<E>,

Available on crate feature async only.
Source§

fn type_name() -> &'static str

Source§

fn unit(&self)

Source§

async fn wait_then_unwrap_or_pending<T>(self) -> T
where Self: Future<Output = Option<T>> + Sized,

Source§

async fn unwrap_or_pending_then_wait<F: Future + Unpin>(&mut self) -> F::Output
where Self: BorrowMut<Option<F>>,

Source§

fn with<T>(&self, value: T) -> T

Source§

fn with_item_pushed<T>(self, item: T) -> Vec<T>
where Self: Is<Vec<T>>,

Source§

fn with_str_pushed(self, rhs: &str) -> String
where Self: Is<String>,

Source§

fn write_as_json_to<T: Write>(&self, writer: T) -> Result<(), SerdeJsonError>
where Self: Serialize,

Available on crate feature serde only.
Source§

fn write_all_then(&mut self, byte_str: &[u8]) -> Result<&mut Self, IoError>
where Self: Write,

Source§

async fn write_all_then_async( &mut self, byte_str: &[u8], ) -> Result<&mut Self, IoError>
where Self: AsyncWriteExt + Unpin,

Available on crate features async or process only.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more