#[non_exhaustive]pub struct StreamInfo {
pub name: StreamName,
pub size: u64,
pub allocation_size: u64,
}Expand description
A named stream of a file, as Handle::streams lists it. Built with
StreamInfo::new; every field is public.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StreamNameName of the stream.
size: u64Size of the stream in bytes.
allocation_size: u64Space the stream takes, which may be size.
Implementations§
Source§impl StreamInfo
impl StreamInfo
Sourcepub fn new(name: StreamName, size: u64, allocation_size: u64) -> Self
pub fn new(name: StreamName, size: u64, allocation_size: u64) -> Self
The stream name with size bytes in allocation_size bytes.
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Auto Trait Implementations§
impl Forget for StreamInfo
impl Freeze for StreamInfo
impl Move for StreamInfo
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin for StreamInfo
impl UnsafeUnpin for StreamInfo
impl UnwindSafe for StreamInfo
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