pub struct UninitializedSession { /* private fields */ }Expand description
A live HAPI connection that has not yet been initialized.
Values are returned by the connect_to_* helpers in crate::server. Call
Self::initialize to run HAPI_Initialize and obtain a Session. If
this value is dropped or initialization fails, its native connection is
closed automatically.
Implementations§
Source§impl UninitializedSession
impl UninitializedSession
Sourcepub fn initialize(self, session_options: SessionOptions) -> Result<Session>
pub fn initialize(self, session_options: SessionOptions) -> Result<Session>
Initialize the Houdini Engine runtime for this connection.
On success, ownership of the native handle transfers to the returned
Session. On failure, the connection is closed during rollback.
Trait Implementations§
Source§impl Debug for UninitializedSession
impl Debug for UninitializedSession
Source§impl Drop for UninitializedSession
impl Drop for UninitializedSession
Auto Trait Implementations§
impl Forget for UninitializedSession
impl Freeze for UninitializedSession
impl Move for UninitializedSession
impl RefUnwindSafe for UninitializedSession
impl Send for UninitializedSession
impl Sync for UninitializedSession
impl Unpin for UninitializedSession
impl UnsafeUnpin for UninitializedSession
impl UnwindSafe for UninitializedSession
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