pub struct SessionRequest {
pub schema: String,
pub crs_epsg: u32,
pub terrain: TerrainSpec,
pub budgets: Budgets,
pub products: Vec<Product>,
pub profiles: Vec<ProfileSpec>,
pub aois: Vec<AoiSpec>,
pub error_policy: ErrorPolicy,
}Fields§
§schema: String§crs_epsg: u32Declared CRS of every grid, sample and AOI bound. No reprojection is ever performed.
terrain: TerrainSpec§budgets: Budgets§products: Vec<Product>§profiles: Vec<ProfileSpec>§aois: Vec<AoiSpec>§error_policy: ErrorPolicyImplementations§
Source§impl SessionRequest
impl SessionRequest
pub fn load(path: &Path) -> Result<Self, MapError>
pub fn validate(&self) -> Result<(), MapError>
Sourcepub fn effective_tiles_in_flight(&self) -> usize
pub fn effective_tiles_in_flight(&self) -> usize
Evaluated tiles that can actually be alive at once: 1 in the serial branch
(max_tiles_in_flight == 1), otherwise two pipelined chunks of max_tiles_in_flight / 2.
Sourcepub fn output_buffer_bound(&self) -> Result<u64, MapError>
pub fn output_buffer_bound(&self) -> Result<u64, MapError>
Bytes of evaluated tile buffers that can be alive between workers and sink
(effective_tiles_in_flight x output_tile^2 x 40; five 8-byte buffers per pixel).
Sourcepub fn inline_payload_bytes(&self) -> u64
pub fn inline_payload_bytes(&self) -> u64
Exact bytes of profile payloads held inside the parsed request (inline sources), which stay resident for the whole session.
Trait Implementations§
Source§impl Debug for SessionRequest
impl Debug for SessionRequest
Source§impl<'de> Deserialize<'de> for SessionRequest
impl<'de> Deserialize<'de> for SessionRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionRequest
impl RefUnwindSafe for SessionRequest
impl Send for SessionRequest
impl Sync for SessionRequest
impl Unpin for SessionRequest
impl UnsafeUnpin for SessionRequest
impl UnwindSafe for SessionRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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