pub struct BrowserAttachment {
pub key: String,
pub id: u16,
pub tab: u16,
pub frames: Receiver<Option<BrowserFrame>>,
pub view: Receiver<BrowserViewState>,
pub tabs: Receiver<BrowserTabList>,
pub nav: Receiver<Option<BrowserNavState>>,
pub failures: Receiver<Option<String>>,
pub files: Receiver<Option<BrowserFileAsk>>,
pub downloads: Receiver<BrowserDownload>,
pub audio: Receiver<BrowserAudio>,
}Expand description
A viewer’s handle on one tab, as the transport keeps it.
Fields§
§key: StringThe profile’s key, for the calls that follow (input, control, nav).
id: u16The id the binary frames carry.
tab: u16The tab this viewer is on, for every call that follows.
frames: Receiver<Option<BrowserFrame>>The newest frame, and a way to follow it.
view: Receiver<BrowserViewState>The tab’s controller and the viewer count, as they change.
tabs: Receiver<BrowserTabList>The profile’s tabs, as they change.
Where the tab’s history sits, as it moves - the bar’s arrows read this rather than asking after every click.
failures: Receiver<Option<String>>Why the profile’s browser stopped, when it did.
files: Receiver<Option<BrowserFileAsk>>A page’s file chooser, while a person has to answer one.
downloads: Receiver<BrowserDownload>Finished downloads, each once, for the viewer that takes it.
audio: Receiver<BrowserAudio>The page’s own audio, streamed while it plays.
Auto Trait Implementations§
impl !RefUnwindSafe for BrowserAttachment
impl !UnwindSafe for BrowserAttachment
impl Freeze for BrowserAttachment
impl Send for BrowserAttachment
impl Sync for BrowserAttachment
impl Unpin for BrowserAttachment
impl UnsafeUnpin for BrowserAttachment
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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