pub struct FdReader2<S> { /* private fields */ }Expand description
Input function that reads from a file descriptor
An instance of FdReader2<S> contains a Rc<Concurrent<S>> to read input
from a file descriptor.
Although FdReader2 implements Clone, it does not mean you can create and
keep a copy of a FdReader2 instance to replay the input later. Since both
the original and clone share the same Concurrent<S>, reading a line from
one instance will affect the next read from the other.
FdReader2 is a variant of FdReader that depends on
Concurrent<S> instead of SharedSystem.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for FdReader2<S>
impl<S> !RefUnwindSafe for FdReader2<S>
impl<S> !Send for FdReader2<S>
impl<S> !Sync for FdReader2<S>
impl<S> Unpin for FdReader2<S>
impl<S> UnsafeUnpin for FdReader2<S>
impl<S> !UnwindSafe for FdReader2<S>
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> InputObject for Twhere
T: Input,
impl<T> InputObject for Twhere
T: Input,
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