pub struct FetchObjectMeta {
pub group_id: u64,
pub subgroup_id: u64,
pub object_id: u64,
pub publisher_priority: u8,
pub extension_headers_len: u64,
pub payload_length: u64,
pub status: Option<u64>,
pub wire_len: u64,
}Expand description
The framing of one fetch object, without its payload.
Produced by FetchObject::decode_meta for callers that forward an
object’s bytes verbatim and never inspect the payload.
Fields§
§group_id: u64Group ID.
subgroup_id: u64Subgroup ID.
object_id: u64Object ID.
publisher_priority: u8Publisher priority.
extension_headers_len: u64Byte length of the extension-header block’s contents, excluding its length prefix.
payload_length: u64Declared payload length. Zero when status is Some.
status: Option<u64>Object Status wire code, present only when the payload is empty.
wire_len: u64Total bytes this object occupies on the wire, prefix fields included.
Implementations§
Source§impl FetchObjectMeta
impl FetchObjectMeta
Sourcepub fn payload_permission(&self) -> Option<PayloadPermission>
pub fn payload_permission(&self) -> Option<PayloadPermission>
Whether this object’s status permits it a non-empty payload.
The fetch-stream twin of SubgroupObjectMeta::payload_permission, and
it answers on the same terms: None for a code this draft does not
assign, and PayloadPermission::Permitted for an absent status, which
a meta has only when its payload length is non-zero.
Trait Implementations§
Source§impl Clone for FetchObjectMeta
impl Clone for FetchObjectMeta
Source§fn clone(&self) -> FetchObjectMeta
fn clone(&self) -> FetchObjectMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more