pub(super) enum BufferedSide {
Initial(BufferedSideInitialState),
Ready(BufferedSideReadyState),
}Variants§
Initial(BufferedSideInitialState)
Indicates that build-side not collected yet
Ready(BufferedSideReadyState)
Indicates that build-side data has been collected
Implementations§
Source§impl BufferedSide
impl BufferedSide
pub(super) fn try_as_initial_mut( &mut self, ) -> Result<&mut BufferedSideInitialState>
pub(super) fn try_as_ready(&self) -> Result<&BufferedSideReadyState>
Sourcepub(super) fn try_as_ready_mut(&mut self) -> Result<&mut BufferedSideReadyState>
pub(super) fn try_as_ready_mut(&mut self) -> Result<&mut BufferedSideReadyState>
Tries to extract BuildSideReadyState from BuildSide enum. Returns an error if state is not Ready.
Auto Trait Implementations§
impl Freeze for BufferedSide
impl !RefUnwindSafe for BufferedSide
impl Send for BufferedSide
impl Sync for BufferedSide
impl Unpin for BufferedSide
impl !UnwindSafe for BufferedSide
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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