pub struct ServerPlacementRequest { /* private fields */ }Expand description
Server placement request carried through stream-fabric server frames.
Implementations§
Source§impl ServerPlacementRequest
impl ServerPlacementRequest
Sourcepub fn new(placement_report: Expr, output_profile: TransportProfile) -> Self
pub fn new(placement_report: Expr, output_profile: TransportProfile) -> Self
Creates a request for placement_report declaring output_profile.
Realtime pinning is off and resource limits start at their defaults.
Sourcepub fn buffered_preview(placement_report: Expr) -> Self
pub fn buffered_preview(placement_report: Expr) -> Self
Creates a request whose output uses the server buffered-preview profile.
Sourcepub fn render_return(placement_report: Expr) -> Self
pub fn render_return(placement_report: Expr) -> Self
Creates a request whose output uses the server render-return profile.
Sourcepub fn with_realtime_pin(self, realtime_pinned: bool) -> Self
pub fn with_realtime_pin(self, realtime_pinned: bool) -> Self
Returns this request with realtime pinning set to realtime_pinned.
A realtime-pinned node cannot be hosted on the server site and is refused during placement.
Sourcepub fn with_resource_limits(
self,
resource_limits: PlacementResourceLimits,
) -> Self
pub fn with_resource_limits( self, resource_limits: PlacementResourceLimits, ) -> Self
Returns this request with its resource limits replaced.
Sourcepub fn placement_report(&self) -> &Expr
pub fn placement_report(&self) -> &Expr
Returns the placement report Expr describing the work to place.
Sourcepub fn output_profile(&self) -> &TransportProfile
pub fn output_profile(&self) -> &TransportProfile
Returns the declared output transport profile.
Sourcepub fn realtime_pinned(&self) -> bool
pub fn realtime_pinned(&self) -> bool
Returns whether the placed node is pinned to realtime execution.
Sourcepub fn resource_limits(&self) -> PlacementResourceLimits
pub fn resource_limits(&self) -> PlacementResourceLimits
Returns the resource limits governing this placement.
Trait Implementations§
Source§impl Clone for ServerPlacementRequest
impl Clone for ServerPlacementRequest
Source§fn clone(&self) -> ServerPlacementRequest
fn clone(&self) -> ServerPlacementRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServerPlacementRequest
impl Debug for ServerPlacementRequest
impl Eq for ServerPlacementRequest
Source§impl PartialEq for ServerPlacementRequest
impl PartialEq for ServerPlacementRequest
Source§fn eq(&self, other: &ServerPlacementRequest) -> bool
fn eq(&self, other: &ServerPlacementRequest) -> bool
self and other values to be equal, and is used by ==.