pub struct Ports<'a, H, F, G, C> {
pub client: &'a mut SunoClient<C>,
pub http: &'a H,
pub fs: &'a F,
pub ffmpeg: &'a G,
pub clock: &'a C,
}Expand description
The IO ports the executor drives, grouped so one value threads them through.
client is the only &mut port: it performs the authenticated WAV render
flow and so mutates its cached session. The rest are shared references.
Fields§
§client: &'a mut SunoClient<C>Performs the authenticated WAV render and poll flow.
http: &'a HThe public network port (CDN audio, rendered WAV, cover art).
fs: &'a FThe disk port.
ffmpeg: &'a GThe transcode port (WAV to FLAC).
clock: &'a CThe backoff and poll delay port.
Auto Trait Implementations§
impl<'a, H, F, G, C> !UnwindSafe for Ports<'a, H, F, G, C>
impl<'a, H, F, G, C> Freeze for Ports<'a, H, F, G, C>
impl<'a, H, F, G, C> RefUnwindSafe for Ports<'a, H, F, G, C>
impl<'a, H, F, G, C> Send for Ports<'a, H, F, G, C>
impl<'a, H, F, G, C> Sync for Ports<'a, H, F, G, C>
impl<'a, H, F, G, C> Unpin for Ports<'a, H, F, G, C>
impl<'a, H, F, G, C> UnsafeUnpin for Ports<'a, H, F, G, C>
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