pub enum UnderlyingSinkType {
Js {
abort: RefCell<Option<Rc<UnderlyingSinkAbortCallback<DomTypeHolder>>>>,
start: RefCell<Option<Rc<UnderlyingSinkStartCallback<DomTypeHolder>>>>,
close: RefCell<Option<Rc<UnderlyingSinkCloseCallback<DomTypeHolder>>>>,
write: RefCell<Option<Rc<UnderlyingSinkWriteCallback<DomTypeHolder>>>>,
},
Transfer {
backpressure_promise: Rc<RefCell<Option<Rc<Promise>>>>,
port: Dom<MessagePort>,
},
Transform(Dom<TransformStream>, Rc<Promise>),
}
Expand description
The type of sink algorithms we are using.
Variants§
Js
Algorithms are provided by Js callbacks.
Fields
§
abort: RefCell<Option<Rc<UnderlyingSinkAbortCallback<DomTypeHolder>>>>
§
start: RefCell<Option<Rc<UnderlyingSinkStartCallback<DomTypeHolder>>>>
§
close: RefCell<Option<Rc<UnderlyingSinkCloseCallback<DomTypeHolder>>>>
Transfer
Algorithms supporting streams transfer are implemented in Rust. The promise and port used in those algorithms are stored here.
Transform(Dom<TransformStream>, Rc<Promise>)
Algorithms supporting transform streams are implemented in Rust.
Implementations§
Source§impl UnderlyingSinkType
impl UnderlyingSinkType
pub(crate) fn new_js( abort: Option<Rc<UnderlyingSinkAbortCallback<DomTypeHolder>>>, start: Option<Rc<UnderlyingSinkStartCallback<DomTypeHolder>>>, close: Option<Rc<UnderlyingSinkCloseCallback<DomTypeHolder>>>, write: Option<Rc<UnderlyingSinkWriteCallback<DomTypeHolder>>>, ) -> Self
Trait Implementations§
Source§impl PartialEq for UnderlyingSinkType
impl PartialEq for UnderlyingSinkType
Source§impl Traceable for UnderlyingSinkType
impl Traceable for UnderlyingSinkType
impl StructuralPartialEq for UnderlyingSinkType
Auto Trait Implementations§
impl !Freeze for UnderlyingSinkType
impl !RefUnwindSafe for UnderlyingSinkType
impl !Send for UnderlyingSinkType
impl !Sync for UnderlyingSinkType
impl Unpin for UnderlyingSinkType
impl !UnwindSafe for UnderlyingSinkType
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
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert