pub struct SessionBuilder {
pub client: Client,
pub fps: Option<u32>,
pub unlocked_framerate: Option<bool>,
pub video_res_height: Option<u32>,
pub video_res_width: Option<u32>,
pub buffer_reqs: Option<usize>,
pub await_response_timeout: Option<Duration>,
pub show_grid: Option<bool>,
}
Expand description
Parameters for starting a session with the KittyCAD Modeling API.
Fields§
§client: Client
Client to the KittyCAD API.
fps: Option<u32>
Frames per second of the video feed.
unlocked_framerate: Option<bool>
If true, engine will render video frames as fast as it can.
video_res_height: Option<u32>
Height of the video feed. Must be a multiple of 4.
video_res_width: Option<u32>
Width of the video feed. Must be a multiple of 4.
buffer_reqs: Option<usize>
How many requests for sending/receiving to/from the API can be in-flight at once.
await_response_timeout: Option<Duration>
How long to wait for the response to a modeling command. Defaults to 10 seconds.
show_grid: Option<bool>
Show the grid?
Auto Trait Implementations§
impl Freeze for SessionBuilder
impl !RefUnwindSafe for SessionBuilder
impl Send for SessionBuilder
impl Sync for SessionBuilder
impl Unpin for SessionBuilder
impl !UnwindSafe for SessionBuilder
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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