pub struct ViewerPlugin { /* private fields */ }Expand description
The viewer as a plugin (opt-in): the panel, the service, the links
service’s way inside, the commands, the setting and the viewer
collector.
Implementations§
Source§impl ViewerPlugin
impl ViewerPlugin
Sourcepub fn fetch(self, fetch: Arc<dyn Fetch>) -> Self
pub fn fetch(self, fetch: Arc<dyn Fetch>) -> Self
How remote pages and images are fetched (none: never).
Sourcepub fn video(self, backend: Arc<dyn VideoBackend>) -> Self
pub fn video(self, backend: Arc<dyn VideoBackend>) -> Self
What plays local videos, in place of this build’s (GStreamer with the
video feature, nothing without it).
Sourcepub fn web_video(self, backend: Arc<dyn EmbedBackend>) -> Self
pub fn web_video(self, backend: Arc<dyn EmbedBackend>) -> Self
What plays YouTube links in a web view, in place of this build’s (wry
with the webview feature on Linux, nothing otherwise).
Sourcepub fn embed_referrer(self, referrer: impl Into<String>) -> Self
pub fn embed_referrer(self, referrer: impl Into<String>) -> Self
The Referer the web view’s request carries, in place of the one
built from the application’s id (https://<app id>/, referrer_for
of AppBuilder::app_id). YouTube’s terms ask that it identify the
application: an https URL whose domain is its id, as registered
with the store distributing it. Without it and without an id,
YouTube links open outside.
Trait Implementations§
Source§impl Debug for ViewerPlugin
impl Debug for ViewerPlugin
Source§impl Default for ViewerPlugin
impl Default for ViewerPlugin
Source§fn default() -> ViewerPlugin
fn default() -> ViewerPlugin
Source§impl Plugin for ViewerPlugin
impl Plugin for ViewerPlugin
Auto Trait Implementations§
impl Freeze for ViewerPlugin
impl !RefUnwindSafe for ViewerPlugin
impl Send for ViewerPlugin
impl Sync for ViewerPlugin
impl Unpin for ViewerPlugin
impl UnsafeUnpin for ViewerPlugin
impl !UnwindSafe for ViewerPlugin
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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