#[repr(C)]pub struct StreamParm { /* private fields */ }
Implementations§
Source§impl StreamParm
impl StreamParm
Sourcepub fn new<T: IsStreamParm>(type_: BufferType, data: T) -> Option<Self>
pub fn new<T: IsStreamParm>(type_: BufferType, data: T) -> Option<Self>
Create from value
Sourcepub fn try_ref<T: IsStreamParm>(&self) -> Option<&T>
pub fn try_ref<T: IsStreamParm>(&self) -> Option<&T>
Get reference to value
Sourcepub fn try_mut<T: IsStreamParm>(&mut self) -> Option<&mut T>
pub fn try_mut<T: IsStreamParm>(&mut self) -> Option<&mut T>
Get mutable reference to value
Source§impl StreamParm
impl StreamParm
Sourcepub fn type_(&self) -> BufferType
pub fn type_(&self) -> BufferType
Buffer type
Trait Implementations§
Source§impl Clone for StreamParm
impl Clone for StreamParm
Source§fn clone(&self) -> StreamParm
fn clone(&self) -> StreamParm
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Display for StreamParm
impl Display for StreamParm
Source§impl From<BufferType> for StreamParm
impl From<BufferType> for StreamParm
Source§fn from(type_: BufferType) -> Self
fn from(type_: BufferType) -> Self
Converts to this type from the input type.
impl Copy for StreamParm
impl Send for StreamParm
Auto Trait Implementations§
impl Freeze for StreamParm
impl RefUnwindSafe for StreamParm
impl Sync for StreamParm
impl Unpin for StreamParm
impl UnwindSafe for StreamParm
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