Struct MonoCreate

Source
pub struct MonoCreate<T, G, E>
where G: Fn() -> Result<T, E>,
{ /* private fields */ }

Trait Implementations§

Source§

impl<T, G, E> Mono<T, E> for MonoCreate<T, G, E>
where G: Fn() -> Result<T, E>,

Source§

fn block(self) -> Result<Option<Self::Item>, Self::Error>
where Self::Item: 'static + Send, Self::Error: 'static + Send, Self: Sized,

Source§

fn do_on_error<F>(self, f: F) -> MonoDoOnError<Self::Item, Self::Error, Self, F>
where F: 'static + Send + Fn(&Self::Error), Self: Sized,

Source§

fn do_on_success<F>(self, f: F) -> Foreach<Self, Self::Item, F, Self::Error>
where F: 'static + Send + Fn(&Self::Item), Self: Sized,

Source§

fn do_on_complete<F>( self, f: F, ) -> MonoDoOnComplete<Self::Item, Self::Error, Self, F>
where Self: Sized, F: 'static + Send + Fn(),

Source§

fn map<A, F>( self, transform: F, ) -> MonoTransform<Self, Self::Item, A, F, Self::Error>
where F: 'static + Send + Fn(Self::Item) -> A, Self: Sized,

Source§

fn flatmap<A, M, F>( self, mapper: F, ) -> MonoFlatMap<Self::Item, A, Self::Error, Self, M, F>
where Self: 'static + Send + Sized, Self::Item: 'static + Send, Self::Error: 'static + Send, A: 'static + Send, M: 'static + Send + Mono<A, Self::Error>, F: 'static + Send + Fn(Self::Item) -> M,

Source§

fn do_finally<F>( self, action: F, ) -> MonoDoFinally<Self::Item, Self::Error, Self, F>
where Self: Sized, F: 'static + Send + Fn(),

Source§

fn filter<F>(self, predicate: F) -> MonoFilter<Self, Self::Item, F, Self::Error>
where Self: Sized, F: 'static + Send + Fn(&Self::Item) -> bool,

Source§

fn subscribe_on<C>( self, scheduler: C, ) -> MonoScheduleOn<Self::Item, Self::Error, Self, C>
where Self: 'static + Send + Sized, C: Scheduler<Item = Self::Item, Error = Self::Error>,

Source§

impl<T, G, E> Publisher for MonoCreate<T, G, E>
where G: Fn() -> Result<T, E>,

Source§

type Item = T

Source§

type Error = E

Source§

fn subscribe(self, subscriber: impl Subscriber<Item = T, Error = E>)

Auto Trait Implementations§

§

impl<T, G, E> Freeze for MonoCreate<T, G, E>
where G: Freeze,

§

impl<T, G, E> RefUnwindSafe for MonoCreate<T, G, E>
where G: RefUnwindSafe,

§

impl<T, G, E> Send for MonoCreate<T, G, E>
where G: Send,

§

impl<T, G, E> Sync for MonoCreate<T, G, E>
where G: Sync,

§

impl<T, G, E> Unpin for MonoCreate<T, G, E>
where G: Unpin,

§

impl<T, G, E> UnwindSafe for MonoCreate<T, G, E>
where G: UnwindSafe,

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