GMime.StreamFs¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
eos |
r |
|
|
fd |
r |
file descriptor |
|
owner |
r |
|
|
parent_object |
r |
parent |
Class Details¶
- class GMime.StreamFs(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
GMime.Stream
wrapper around POSIX file descriptors.- classmethod new(fd)¶
- Parameters:
fd (
int
) – a file descriptor- Returns:
a stream using fd.
- Return type:
Creates a new
GMime.StreamFs
object around fd.
- classmethod new_with_bounds(fd, start, end)¶
- Parameters:
- Returns:
a stream using fd with bounds start and end.
- Return type:
Creates a new
GMime.StreamFs
object around fd with bounds start and end.
- classmethod open(path, flags, mode)¶
- Parameters:
- Raises:
- Returns:
a stream using for reading and/or writing to the specified file path or
None
on error.- Return type:
Creates a new
GMime.StreamFs
object for the specified path.
- get_owner()¶
-
Gets whether or not self owns the backend file descriptor.