Skip to main content

BufferedIncoming

Struct BufferedIncoming 

Source
pub struct BufferedIncoming { /* private fields */ }
Expand description

Buffered incoming stream used for decoding values

This wraps the multiplexed framed frame::Incoming stream with a read buffer used to hold bytes that were read ahead while decoding synchronous values.

Implementations§

Source§

impl BufferedIncoming

Source

pub fn index(&self, path: &[usize]) -> Result<Self>

Index the incoming stream using a structural path, returning a handle to the multiplexed sub-stream addressed by it.

Trait Implementations§

Source§

impl AsyncRead for BufferedIncoming

Source§

fn poll_read( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>, ) -> Poll<Result<()>>

Attempts to read from the AsyncRead into buf. Read more
Source§

impl<T> Deferred<BufferedIncoming> for ListDecoder<T>
where T: Decoder,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<T: ?Sized> Deferred<BufferedIncoming> for ResourceBorrowDecoder<T>

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<T: ?Sized> Deferred<BufferedIncoming> for CoreVecDecoder<ResourceBorrowDecoder<T>>

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<T: ?Sized> Deferred<BufferedIncoming> for ResourceOwnDecoder<T>

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<T: ?Sized> Deferred<BufferedIncoming> for CoreVecDecoder<ResourceOwnDecoder<T>>

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder,), (Option<V0>,)>
where V0: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder), (Option<V0>, Option<V1>)>
where V0: Decode, V1: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder), (Option<V0>, Option<V1>, Option<V2>)>
where V0: Decode, V1: Decode, V2: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5, V6> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder, V6::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>, Option<V6>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode, V6: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5, V6, V7> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder, V6::Decoder, V7::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>, Option<V6>, Option<V7>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode, V6: Decode, V7: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5, V6, V7, V8> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder, V6::Decoder, V7::Decoder, V8::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>, Option<V6>, Option<V7>, Option<V8>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode, V6: Decode, V7: Decode, V8: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5, V6, V7, V8, V9> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder, V6::Decoder, V7::Decoder, V8::Decoder, V9::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>, Option<V6>, Option<V7>, Option<V8>, Option<V9>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode, V6: Decode, V7: Decode, V8: Decode, V9: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder, V6::Decoder, V7::Decoder, V8::Decoder, V9::Decoder, V10::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>, Option<V6>, Option<V7>, Option<V8>, Option<V9>, Option<V10>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode, V6: Decode, V7: Decode, V8: Decode, V9: Decode, V10: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder, V6::Decoder, V7::Decoder, V8::Decoder, V9::Decoder, V10::Decoder, V11::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>, Option<V6>, Option<V7>, Option<V8>, Option<V9>, Option<V10>, Option<V11>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode, V6: Decode, V7: Decode, V8: Decode, V9: Decode, V10: Decode, V11: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder, V6::Decoder, V7::Decoder, V8::Decoder, V9::Decoder, V10::Decoder, V11::Decoder, V12::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>, Option<V6>, Option<V7>, Option<V8>, Option<V9>, Option<V10>, Option<V11>, Option<V12>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode, V6: Decode, V7: Decode, V8: Decode, V9: Decode, V10: Decode, V11: Decode, V12: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder, V6::Decoder, V7::Decoder, V8::Decoder, V9::Decoder, V10::Decoder, V11::Decoder, V12::Decoder, V13::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>, Option<V6>, Option<V7>, Option<V8>, Option<V9>, Option<V10>, Option<V11>, Option<V12>, Option<V13>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode, V6: Decode, V7: Decode, V8: Decode, V9: Decode, V10: Decode, V11: Decode, V12: Decode, V13: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder, V6::Decoder, V7::Decoder, V8::Decoder, V9::Decoder, V10::Decoder, V11::Decoder, V12::Decoder, V13::Decoder, V14::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>, Option<V6>, Option<V7>, Option<V8>, Option<V9>, Option<V10>, Option<V11>, Option<V12>, Option<V13>, Option<V14>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode, V6: Decode, V7: Decode, V8: Decode, V9: Decode, V10: Decode, V11: Decode, V12: Decode, V13: Decode, V14: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15> Deferred<BufferedIncoming> for TupleDecoder<(V0::Decoder, V1::Decoder, V2::Decoder, V3::Decoder, V4::Decoder, V5::Decoder, V6::Decoder, V7::Decoder, V8::Decoder, V9::Decoder, V10::Decoder, V11::Decoder, V12::Decoder, V13::Decoder, V14::Decoder, V15::Decoder), (Option<V0>, Option<V1>, Option<V2>, Option<V3>, Option<V4>, Option<V5>, Option<V6>, Option<V7>, Option<V8>, Option<V9>, Option<V10>, Option<V11>, Option<V12>, Option<V13>, Option<V14>, Option<V15>)>
where V0: Decode, V1: Decode, V2: Decode, V3: Decode, V4: Decode, V5: Decode, V6: Decode, V7: Decode, V8: Decode, V9: Decode, V10: Decode, V11: Decode, V12: Decode, V13: Decode, V14: Decode, V15: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<T> Deferred<BufferedIncoming> for FutureDecoder<T>
where T: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl<T> Deferred<BufferedIncoming> for StreamDecoder<T>
where T: Decode,

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl Deferred<BufferedIncoming> for StreamDecoderBytes

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl Deferred<BufferedIncoming> for StreamDecoderRead

Source§

fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>

Takes a deferred async processing operation, if any
Source§

impl Drop for BufferedIncoming

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Index for BufferedIncoming

Source§

fn index(&self, path: &[usize]) -> Result<Self>

Index the entity using a structural path

Auto Trait Implementations§

Blanket Implementations§

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> AsyncReadCore for T
where T: AsyncRead,

Source§

fn read_core_name( &mut self, s: &mut String, ) -> impl Future<Output = Result<(), Error>>
where Self: Sized + Unpin,

Source§

impl<R> AsyncReadExt for R
where R: AsyncRead + ?Sized,

Source§

fn chain<R>(self, next: R) -> Chain<Self, R>
where Self: Sized, R: AsyncRead,

Creates a new AsyncRead instance that chains this stream with next. Read more
Source§

fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Read<'a, Self>
where Self: Unpin,

Pulls some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§

fn read_buf<'a, B>(&'a mut self, buf: &'a mut B) -> ReadBuf<'a, Self, B>
where Self: Unpin, B: BufMut + ?Sized,

Pulls some bytes from this source into the specified buffer, advancing the buffer’s internal cursor. Read more
Source§

fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self>
where Self: Unpin,

Reads the exact number of bytes required to fill buf. Read more
Source§

fn read_u8(&mut self) -> ReadU8<&mut Self>
where Self: Unpin,

Reads an unsigned 8 bit integer from the underlying reader. Read more
Source§

fn read_i8(&mut self) -> ReadI8<&mut Self>
where Self: Unpin,

Reads a signed 8 bit integer from the underlying reader. Read more
Source§

fn read_u16(&mut self) -> ReadU16<&mut Self>
where Self: Unpin,

Reads an unsigned 16-bit integer in big-endian order from the underlying reader. Read more
Source§

fn read_i16(&mut self) -> ReadI16<&mut Self>
where Self: Unpin,

Reads a signed 16-bit integer in big-endian order from the underlying reader. Read more
Source§

fn read_u32(&mut self) -> ReadU32<&mut Self>
where Self: Unpin,

Reads an unsigned 32-bit integer in big-endian order from the underlying reader. Read more
Source§

fn read_i32(&mut self) -> ReadI32<&mut Self>
where Self: Unpin,

Reads a signed 32-bit integer in big-endian order from the underlying reader. Read more
Source§

fn read_u64(&mut self) -> ReadU64<&mut Self>
where Self: Unpin,

Reads an unsigned 64-bit integer in big-endian order from the underlying reader. Read more
Source§

fn read_i64(&mut self) -> ReadI64<&mut Self>
where Self: Unpin,

Reads an signed 64-bit integer in big-endian order from the underlying reader. Read more
Source§

fn read_u128(&mut self) -> ReadU128<&mut Self>
where Self: Unpin,

Reads an unsigned 128-bit integer in big-endian order from the underlying reader. Read more
Source§

fn read_i128(&mut self) -> ReadI128<&mut Self>
where Self: Unpin,

Reads an signed 128-bit integer in big-endian order from the underlying reader. Read more
Source§

fn read_f32(&mut self) -> ReadF32<&mut Self>
where Self: Unpin,

Reads an 32-bit floating point type in big-endian order from the underlying reader. Read more
Source§

fn read_f64(&mut self) -> ReadF64<&mut Self>
where Self: Unpin,

Reads an 64-bit floating point type in big-endian order from the underlying reader. Read more
Source§

fn read_u16_le(&mut self) -> ReadU16Le<&mut Self>
where Self: Unpin,

Reads an unsigned 16-bit integer in little-endian order from the underlying reader. Read more
Source§

fn read_i16_le(&mut self) -> ReadI16Le<&mut Self>
where Self: Unpin,

Reads a signed 16-bit integer in little-endian order from the underlying reader. Read more
Source§

fn read_u32_le(&mut self) -> ReadU32Le<&mut Self>
where Self: Unpin,

Reads an unsigned 32-bit integer in little-endian order from the underlying reader. Read more
Source§

fn read_i32_le(&mut self) -> ReadI32Le<&mut Self>
where Self: Unpin,

Reads a signed 32-bit integer in little-endian order from the underlying reader. Read more
Source§

fn read_u64_le(&mut self) -> ReadU64Le<&mut Self>
where Self: Unpin,

Reads an unsigned 64-bit integer in little-endian order from the underlying reader. Read more
Source§

fn read_i64_le(&mut self) -> ReadI64Le<&mut Self>
where Self: Unpin,

Reads an signed 64-bit integer in little-endian order from the underlying reader. Read more
Source§

fn read_u128_le(&mut self) -> ReadU128Le<&mut Self>
where Self: Unpin,

Reads an unsigned 128-bit integer in little-endian order from the underlying reader. Read more
Source§

fn read_i128_le(&mut self) -> ReadI128Le<&mut Self>
where Self: Unpin,

Reads an signed 128-bit integer in little-endian order from the underlying reader. Read more
Source§

fn read_f32_le(&mut self) -> ReadF32Le<&mut Self>
where Self: Unpin,

Reads an 32-bit floating point type in little-endian order from the underlying reader. Read more
Source§

fn read_f64_le(&mut self) -> ReadF64Le<&mut Self>
where Self: Unpin,

Reads an 64-bit floating point type in little-endian order from the underlying reader. Read more
Source§

fn read_to_end<'a>(&'a mut self, buf: &'a mut Vec<u8>) -> ReadToEnd<'a, Self>
where Self: Unpin,

Reads all bytes until EOF in this source, placing them into buf. Read more
Source§

fn read_to_string<'a>( &'a mut self, dst: &'a mut String, ) -> ReadToString<'a, Self>
where Self: Unpin,

Reads all bytes until EOF in this source, appending them to buf. Read more
Source§

fn take(self, limit: u64) -> Take<Self>
where Self: Sized,

Creates an adaptor which reads at most limit bytes from it. Read more
Source§

impl<T> AsyncReadLeb128 for T
where T: AsyncRead,

Source§

fn read_u8_leb128(&mut self) -> impl Future<Output = Result<u8, Error>>
where Self: Unpin,

Source§

fn read_u16_leb128(&mut self) -> impl Future<Output = Result<u16, Error>>
where Self: Unpin,

Source§

fn read_u32_leb128(&mut self) -> impl Future<Output = Result<u32, Error>>
where Self: Unpin,

Source§

fn read_u64_leb128(&mut self) -> impl Future<Output = Result<u64, Error>>
where Self: Unpin,

Source§

fn read_u128_leb128(&mut self) -> impl Future<Output = Result<u128, Error>>
where Self: Unpin,

Source§

fn read_var_u8_leb128( &mut self, n: u8, ) -> impl Future<Output = Result<u8, Error>>
where Self: Unpin,

Source§

fn read_var_u16_leb128( &mut self, n: u8, ) -> impl Future<Output = Result<u16, Error>>
where Self: Unpin,

Source§

fn read_var_u32_leb128( &mut self, n: u8, ) -> impl Future<Output = Result<u32, Error>>
where Self: Unpin,

Source§

fn read_var_u64_leb128( &mut self, n: u8, ) -> impl Future<Output = Result<u64, Error>>
where Self: Unpin,

Source§

fn read_var_u128_leb128( &mut self, n: u8, ) -> impl Future<Output = Result<u128, Error>>
where Self: Unpin,

Source§

fn read_i8_leb128(&mut self) -> impl Future<Output = Result<i8, Error>>
where Self: Unpin,

Source§

fn read_i16_leb128(&mut self) -> impl Future<Output = Result<i16, Error>>
where Self: Unpin,

Source§

fn read_i32_leb128(&mut self) -> impl Future<Output = Result<i32, Error>>
where Self: Unpin,

Source§

fn read_i64_leb128(&mut self) -> impl Future<Output = Result<i64, Error>>
where Self: Unpin,

Source§

fn read_i128_leb128(&mut self) -> impl Future<Output = Result<i128, Error>>
where Self: Unpin,

Source§

impl<T> AsyncReadUtf8 for T
where T: AsyncRead,

Source§

fn read_char_utf8(&mut self) -> impl Future<Output = Result<char, Error>>
where Self: Unpin,

Source§

impl<T> AsyncReadValue for T
where T: AsyncRead,

Source§

fn read_bool(&mut self) -> impl Future<Output = Result<bool, Error>>
where Self: Unpin,

Source§

fn read_option_status(&mut self) -> impl Future<Output = Result<bool, Error>>
where Self: Unpin,

Source§

fn read_result_status(&mut self) -> impl Future<Output = Result<bool, Error>>
where Self: Unpin,

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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