S or /

SourceEnum BytesPoll

from egui import BytesPoll
class BytesPoll:

Represents bytes which are currently being loaded.

This is similar to std.task.Poll, but the Pending variant contains an optional size, which may be used during layout to pre-allocate space the image.

Methods§

@staticmethod def Pending(size: Vec2 |None) -> BytesPoll§
@staticmethod def Ready(size: Vec2 |None, bytes: Bytes, mime: str |None) -> BytesPoll§
def bytes(self, /) -> Bytes |None§
def is_pending(self, /) -> bool§
def is_ready(self, /) -> bool§
def mime(self, /) -> str |None§
def size(self, /) -> Vec2 |None§