pub enum CancelAlgorithm<'js> {
ReturnPromiseUndefined,
Function {
f: Function<'js>,
underlying_source: Null<Undefined<Object<'js>>>,
},
RustFunction(Rc<RefCell<Option<Box<dyn FnOnce(Value<'js>) -> Result<Promise<'js>> + 'js>>>>),
Tee1(Class<'js, TeeState<'js>>),
Tee2(Class<'js, TeeState<'js>>),
Transform {
stream: Class<'js, TransformStream<'js>>,
controller: Class<'js, TransformStreamDefaultController<'js>>,
},
}Variants§
ReturnPromiseUndefined
Function
RustFunction(Rc<RefCell<Option<Box<dyn FnOnce(Value<'js>) -> Result<Promise<'js>> + 'js>>>>)
Tee1(Class<'js, TeeState<'js>>)
Tee2(Class<'js, TeeState<'js>>)
Transform
Implementations§
Trait Implementations§
Source§impl<'js> Clone for CancelAlgorithm<'js>
impl<'js> Clone for CancelAlgorithm<'js>
Source§impl<'js> JsLifetime<'js> for CancelAlgorithm<'js>
impl<'js> JsLifetime<'js> for CancelAlgorithm<'js>
Source§type Changed<'to> = CancelAlgorithm<'to>
type Changed<'to> = CancelAlgorithm<'to>
The target which has the same type as a
Self but with another lifetime 'tAuto Trait Implementations§
impl<'js> !RefUnwindSafe for CancelAlgorithm<'js>
impl<'js> !Send for CancelAlgorithm<'js>
impl<'js> !Sync for CancelAlgorithm<'js>
impl<'js> !UnwindSafe for CancelAlgorithm<'js>
impl<'js> Freeze for CancelAlgorithm<'js>
impl<'js> Unpin for CancelAlgorithm<'js>
impl<'js> UnsafeUnpin for CancelAlgorithm<'js>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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