[−][src]Enum streamcatcher::Finaliser
Method to allocate a new contiguous backing store, if required by
Config::use_backing
.
Choosing the incorrect async runtime may cause a panic, and any values other than
InPlace
or NewThread
will result in an error in a synchronous Catcher
.
Variants
Allocate the new store and copy in all bytes in-place, blocking the current thread.
Allocate the new store and copy in all bytes in-place in a new thread.
Default, safe to call in an async context.
Use the async-std runtime for backing-store creation.
Requires the "async-std-compat"
feature.
Use the tokio runtime for backing-store creation.
Requires the "tokio-compat"
feature.
Use the smol runtime for backing-store creation.
Requires the "smol-compat"
feature.
Implementations
impl Finaliser
[src]
pub fn is_sync(&self) -> bool
[src]
Returns whether this option will block a reading thread in a sync-friendly manner.
pub fn run_elsewhere(&self) -> bool
[src]
Returns whether this option will block a reading thread to finalise.
Trait Implementations
impl Clone for Finaliser
[src]
impl Copy for Finaliser
[src]
impl Debug for Finaliser
[src]
impl Eq for Finaliser
[src]
impl PartialEq<Finaliser> for Finaliser
[src]
impl StructuralEq for Finaliser
[src]
impl StructuralPartialEq for Finaliser
[src]
Auto Trait Implementations
impl RefUnwindSafe for Finaliser
impl Send for Finaliser
impl Sync for Finaliser
impl Unpin for Finaliser
impl UnwindSafe for Finaliser
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CompatExt for T
fn compat(self) -> Compat<T>ⓘ
fn compat_ref(&self) -> Compat<&T>ⓘ
fn compat_mut(&mut self) -> Compat<&mut T>ⓘ
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,