pub struct ByteStreamInfo {
pub id: String,
pub topic: String,
pub timestamp: DateTime<Utc>,
pub total_length: Option<u64>,
pub mime_type: String,
pub name: String,
pub encryption_type: EncryptionType,
/* private fields */
}Expand description
Information about a byte data stream.
Fields§
§id: StringUnique identifier of the stream.
topic: StringTopic name used to route the stream to the appropriate handler.
timestamp: DateTime<Utc>When the stream was created.
total_length: Option<u64>Total expected size in bytes, if known.
mime_type: StringThe MIME type of the stream data.
name: StringThe name of the file being sent.
encryption_type: EncryptionTypeThe encryption used
Implementations§
Source§impl ByteStreamInfo
impl ByteStreamInfo
Sourcepub fn attributes(&self) -> HashMap<String, String>
pub fn attributes(&self) -> HashMap<String, String>
Additional attributes as needed for your application.
Returns an owned snapshot of the attributes as of this call; attributes may still be updated when the trailer packet arrives, so re-call to observe later values.
Trait Implementations§
Source§impl Clone for ByteStreamInfo
impl Clone for ByteStreamInfo
Source§fn clone(&self) -> ByteStreamInfo
fn clone(&self) -> ByteStreamInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ByteStreamInfo
impl !UnwindSafe for ByteStreamInfo
impl Freeze for ByteStreamInfo
impl Send for ByteStreamInfo
impl Sync for ByteStreamInfo
impl Unpin for ByteStreamInfo
impl UnsafeUnpin for ByteStreamInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more