#[non_exhaustive]pub struct SmoothOriginConfig {
pub trunk: Arc<Trunk>,
pub segments: Arc<dyn SegmentProvider>,
pub tracks: Arc<dyn TrackProvider>,
}Available on crate feature
std only.Expand description
What a SmoothOrigin is built from: every part is required, so
SmoothOriginConfig::new takes all three.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.trunk: Arc<Trunk>The trunk whose segments the origin describes.
segments: Arc<dyn SegmentProvider>Which published segments the origin presents.
tracks: Arc<dyn TrackProvider>The program’s current track set.
Implementations§
Source§impl SmoothOriginConfig
impl SmoothOriginConfig
Sourcepub fn new(
trunk: Arc<Trunk>,
segments: Arc<dyn SegmentProvider>,
tracks: Arc<dyn TrackProvider>,
) -> Self
pub fn new( trunk: Arc<Trunk>, segments: Arc<dyn SegmentProvider>, tracks: Arc<dyn TrackProvider>, ) -> Self
The origin’s trunk, the segments it presents and the program’s track set.
Auto Trait Implementations§
impl !RefUnwindSafe for SmoothOriginConfig
impl !UnwindSafe for SmoothOriginConfig
impl Forget for SmoothOriginConfig
impl Freeze for SmoothOriginConfig
impl Move for SmoothOriginConfig
impl Send for SmoothOriginConfig
impl Sync for SmoothOriginConfig
impl Unpin for SmoothOriginConfig
impl UnsafeUnpin for SmoothOriginConfig
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