pub struct Media {
pub kind: MediaKind,
pub pinned: Option<String>,
pub on_selected: Option<OnSelected>,
pub sse: bool,
pub disallow_free: bool,
}Expand description
How a media route runs through run: which executor operation serves it, and the
same credential binding a SessionTurn has (WithPinnedAuthID,
WithSelectedAuthIDCallback), which the video routes use to keep a job on the
credential that created it.
Fields§
§kind: MediaKind§pinned: Option<String>Only this credential may serve the call.
on_selected: Option<OnSelected>Called with each credential right before it is attempted.
sse: boolThe client gets an event stream (Go’s image streams, also when emulated from a
buffered call): until the result renders, serve holds the connection with
: keep-alive frames every requests.streaming.keepalive-seconds
(waitImagesStreamExecution) instead of the non-stream keep-alive. A failure that
renders after that commit is replaced by the response’s SseError event.
disallow_free: boolWithDisallowFreeAuth (routed images): Codex credentials on the free plan are
never selected (Go isFreeCodexAuth), in any round.
Auto Trait Implementations§
impl !RefUnwindSafe for Media
impl !UnwindSafe for Media
impl Forget for Media
impl Freeze for Media
impl Move for Media
impl Send for Media
impl Sync for Media
impl Unpin for Media
impl UnsafeUnpin for Media
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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