class documentation

class _FileDescriptorReservation: (source)

Implements interfaces: twisted.internet.tcp._IFileDescriptorReservation

View In Hierarchy

_IFileDescriptorReservation implementation.

Method __enter__ See _IFileDescriptorReservation.__enter__.
Method __exit__ See _IFileDescriptorReservation.__exit__.
Method available See _IFileDescriptorReservation.available.
Method reserve See _IFileDescriptorReservation.reserve.
Instance Variable fileFactory A factory that will be called to reserve a file descriptor.
Class Variable _log Undocumented
Instance Variable _fileDescriptor Undocumented
Instance Variable _fileFactory Undocumented
def available(self): (source)

See _IFileDescriptorReservation.available.

Returns
True if the reserved file descriptor is open and can thus be closed to allow a new file to be opened in its place; False if it is not open.
fileFactory: A callable that accepts no arguments and returns an object with a close method. = (source)

A factory that will be called to reserve a file descriptor.

Undocumented

_fileDescriptor: Optional[_HasClose] = (source)

Undocumented

_fileFactory: Callable[[], _HasClose] = (source)

Undocumented