pub struct VideoSource {
pub coordinates: [GeoCoord; 4],
pub factory: FrameProviderFactory,
}Expand description
Video source — georeferenced dynamic overlay driven by a
FrameProvider.
This is the Rustial equivalent of MapLibre / Mapbox video source.
In the browser, a <video> element supplies frames; in Rustial the
user supplies a FrameProviderFactory that creates a
FrameProvider for each style
application.
When a raster style layer references a video source, the style
evaluator produces a DynamicImageOverlayLayer instead of a
raster tile layer.
Fields§
§coordinates: [GeoCoord; 4]Geographic corner coordinates (TL, TR, BR, BL).
factory: FrameProviderFactoryFactory used to build a fresh frame provider when the style is applied.
Implementations§
Trait Implementations§
Source§impl Clone for VideoSource
impl Clone for VideoSource
Source§fn clone(&self) -> VideoSource
fn clone(&self) -> VideoSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VideoSource
impl !RefUnwindSafe for VideoSource
impl Send for VideoSource
impl Sync for VideoSource
impl Unpin for VideoSource
impl UnsafeUnpin for VideoSource
impl !UnwindSafe for VideoSource
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