pub struct MoqSession { /* private fields */ }Implementations§
Source§impl MoqSession
impl MoqSession
Sourcepub fn shutdown(&self)
pub fn shutdown(&self)
Graceful shutdown. Equivalent to cancel(0). Documents the
convention that code 0 means “no error” so callers don’t have to
pick one. Named shutdown (not close) because UniFFI’s Kotlin
generator already emits an AutoCloseable.close() that releases
the FFI handle, and shadowing it would silently mean a different
thing per binding.
Trait Implementations§
Source§impl Drop for MoqSession
impl Drop for MoqSession
Source§impl<UT> LiftRef<UT> for MoqSession
impl<UT> LiftRef<UT> for MoqSession
type LiftType = Arc<MoqSession>
Source§impl<UT> LowerError<UT> for MoqSession
impl<UT> LowerError<UT> for MoqSession
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for MoqSession
impl<UT> LowerReturn<UT> for MoqSession
Source§type ReturnType = <Arc<MoqSession> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<MoqSession> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for MoqSession
impl<UT> TypeId<UT> for MoqSession
Auto Trait Implementations§
impl !RefUnwindSafe for MoqSession
impl !UnwindSafe for MoqSession
impl Freeze for MoqSession
impl Send for MoqSession
impl Sync for MoqSession
impl Unpin for MoqSession
impl UnsafeUnpin for MoqSession
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