Struct hlua_badtouch::InsideCallback [] [src]

pub struct InsideCallback { /* fields omitted */ }

Opaque type that represents the Lua context when inside a callback.

Some types (like Result) can only be returned from a callback and not written inside a Lua variable. This type is here to enforce this restriction.

Trait Implementations

impl Debug for InsideCallback
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a, 'lua> AsLua<'lua> for &'a InsideCallback
[src]

[src]

impl<'a, 'lua> AsLua<'lua> for &'a mut InsideCallback
[src]

[src]

impl<'a, 'lua> AsMutLua<'lua> for &'a mut InsideCallback
[src]

[src]

Returns the raw Lua context.

impl<'a, T, E, P> Push<&'a mut InsideCallback> for Result<T, E> where
    T: Push<&'a mut InsideCallback, Err = P> + for<'b> Push<&'b mut &'a mut InsideCallback, Err = P>,
    E: Display
[src]

Error that can happen when pushing a value.

[src]

Pushes the value on the top of the stack. Read more

[src]

Same as push_to_lua but can only succeed and is only available if Err is Void.

impl<'a, T, E, P> PushOne<&'a mut InsideCallback> for Result<T, E> where
    T: PushOne<&'a mut InsideCallback, Err = P> + for<'b> PushOne<&'b mut &'a mut InsideCallback, Err = P>,
    E: Display
[src]

Auto Trait Implementations

impl Send for InsideCallback

impl !Sync for InsideCallback