pyrolab.server.Lockable#
- class Lockable[source]#
Bases:
objectThe Lockable instrument mixin. Only works with LockableDaemon.
Rejects new connections at the Daemon level when locked. Daemon stores the user who locked the device for reference.
This mixin only makes sense in the context of a Daemon. It is not intended for use with local instruments. Additionally, any service registered with a
LockableDaemonwill automatically have this mixin added to it.Examples
class MyCustomService(Service, Lockable): def __init__(self, *args, **kwargs): pass
Methods