Struct RefCount

Source
pub struct RefCount<T, C>(/* private fields */);

Trait Implementations§

Source§

impl<T: Clone, C> Clone for RefCount<T, C>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<T, C> Freeze for RefCount<T, C>
where T: Freeze,

§

impl<T, C> RefUnwindSafe for RefCount<T, C>

§

impl<T, C> Send for RefCount<T, C>
where T: Send,

§

impl<T, C> Sync for RefCount<T, C>
where T: Sync,

§

impl<T, C> Unpin for RefCount<T, C>
where T: Unpin,

§

impl<T, C> UnwindSafe for RefCount<T, C>

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<'a, T> BoxClone<'a> for T
where T: BoxObservable<'a> + Clone + 'a,

Source§

fn box_clone( &self, ) -> Box<dyn BoxClone<'a, Err = <T as BoxObservable<'a>>::Err, Item = <T as BoxObservable<'a>>::Item> + 'a>

Source§

impl<'a, T> BoxObservable<'a> for T
where T: LocalObservable<'a> + 'a,

Source§

type Item = <T as Observable>::Item

Source§

type Err = <T as Observable>::Err

Source§

fn box_subscribe( self: Box<T>, subscriber: Subscriber<Box<dyn Observer<Err = <T as BoxObservable<'a>>::Err, Item = <T as BoxObservable<'a>>::Item> + 'a>, LocalSubscription>, ) -> Box<dyn SubscriptionLike>

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> SharedBoxClone for T
where T: SharedBoxObservable + Clone + 'static,

Source§

fn box_clone( &self, ) -> Box<dyn SharedBoxClone<Item = <T as SharedBoxObservable>::Item, Err = <T as SharedBoxObservable>::Err>>

Source§

impl<'a, S, N, E, C> SubscribeAll<'a, N, E, C> for S
where S: LocalObservable<'a>, N: FnMut(<S as Observable>::Item) + 'a, E: FnMut(<S as Observable>::Err) + 'a, <S as Observable>::Err: 'a, <S as Observable>::Item: 'a, C: FnMut() + 'a,

Source§

type Unsub = <S as LocalObservable<'a>>::Unsub

A type implementing SubscriptionLike
Source§

fn subscribe_all( self, next: N, error: E, complete: C, ) -> SubscriptionWrapper<<S as SubscribeAll<'a, N, E, C>>::Unsub>

Invokes an execution of an Observable and registers Observer handlers for notifications it will emit. Read more
Source§

impl<'a, S, N, C> SubscribeComplete<'a, N, C> for S
where S: LocalObservable<'a, Err = ()>, C: FnMut() + 'a, N: FnMut(<S as Observable>::Item) + 'a, <S as Observable>::Item: 'a,

Source§

type Unsub = <S as LocalObservable<'a>>::Unsub

A type implementing SubscriptionLike
Source§

fn subscribe_complete( self, next: N, complete: C, ) -> SubscriptionWrapper<<S as SubscribeComplete<'a, N, C>>::Unsub>
where <S as Observable>::Item: 'a,

Invokes an execution of an Observable and registers Observer handlers for notifications it will emit.
Source§

impl<'a, S, N, E> SubscribeErr<'a, N, E> for S
where S: LocalObservable<'a>, N: FnMut(<S as Observable>::Item) + 'a, E: FnMut(<S as Observable>::Err) + 'a, <S as Observable>::Err: 'a, <S as Observable>::Item: 'a,

Source§

type Unsub = <S as LocalObservable<'a>>::Unsub

A type implementing SubscriptionLike
Source§

fn subscribe_err( self, next: N, error: E, ) -> SubscriptionWrapper<<S as SubscribeErr<'a, N, E>>::Unsub>

Invokes an execution of an Observable and registers Observer handlers for notifications it will emit. Read more
Source§

impl<'a, S, N> SubscribeNext<'a, N> for S
where S: LocalObservable<'a, Err = ()>, N: FnMut(<S as Observable>::Item) + 'a, <S as Observable>::Item: 'a,

Source§

type Unsub = <S as LocalObservable<'a>>::Unsub

A type implementing SubscriptionLike
Source§

fn subscribe( self, next: N, ) -> SubscriptionWrapper<<S as SubscribeNext<'a, N>>::Unsub>

Invokes an execution of an Observable and registers Observer handlers for notifications it will emit.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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> 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