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