pub struct PreviewLimits {
pub max_result_bytes: u64,
pub max_mesh_bytes: u64,
pub max_step_bytes: u64,
pub max_memory_bytes: u64,
}Expand description
Size and memory limits of the preview (TEAMCRAFT_PREVIEW_MAX_*).
A file above the cap of its kind is never opened: no conversion is started, the refusal is cached. Result files (VTK, VTU, VTP, FRD) are the ones that get huge and are not meant to be parsed fully – a preview of them is a courtesy, not a feature the server may die for.
Fields§
§max_result_bytes: u64Simulation result files.
max_mesh_bytes: u64Meshes and point clouds.
max_step_bytes: u64STEP B-reps (tessellation needs a multiple of the file size).
max_memory_bytes: u64Address space of the preview process (0 = unlimited; Linux/macOS).
Implementations§
Source§impl PreviewLimits
impl PreviewLimits
Sourcepub fn max_bytes(&self, format: PreviewFormat) -> u64
pub fn max_bytes(&self, format: PreviewFormat) -> u64
The largest input of a format.
Trait Implementations§
Source§impl Clone for PreviewLimits
impl Clone for PreviewLimits
impl Copy for PreviewLimits
Source§impl Debug for PreviewLimits
impl Debug for PreviewLimits
Source§impl Default for PreviewLimits
impl Default for PreviewLimits
impl Eq for PreviewLimits
Source§impl PartialEq for PreviewLimits
impl PartialEq for PreviewLimits
impl StructuralPartialEq for PreviewLimits
Auto Trait Implementations§
impl Freeze for PreviewLimits
impl RefUnwindSafe for PreviewLimits
impl Send for PreviewLimits
impl Sync for PreviewLimits
impl Unpin for PreviewLimits
impl UnsafeUnpin for PreviewLimits
impl UnwindSafe for PreviewLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.