pub struct CorkStreamParams {
pub channel: u32,
pub cork: bool,
}Expand description
Parameters for a cork/uncork command.
Fields§
§channel: u32The channel to cork or uncork.
cork: boolWhether to cork or uncork the stream.
Trait Implementations§
Source§impl Clone for CorkStreamParams
impl Clone for CorkStreamParams
Source§fn clone(&self) -> CorkStreamParams
fn clone(&self) -> CorkStreamParams
Returns a duplicate 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 Debug for CorkStreamParams
impl Debug for CorkStreamParams
Source§impl Default for CorkStreamParams
impl Default for CorkStreamParams
Source§fn default() -> CorkStreamParams
fn default() -> CorkStreamParams
Returns the “default value” for a type. Read more
Source§impl PartialEq for CorkStreamParams
impl PartialEq for CorkStreamParams
Source§impl TagStructRead for CorkStreamParams
impl TagStructRead for CorkStreamParams
Source§fn read(
ts: &mut TagStructReader<'_>,
_protocol_version: u16,
) -> Result<Self, ProtocolError>
fn read( ts: &mut TagStructReader<'_>, _protocol_version: u16, ) -> Result<Self, ProtocolError>
Read an instance of
Self from a tagstruct.Source§impl TagStructWrite for CorkStreamParams
impl TagStructWrite for CorkStreamParams
Source§fn write(
&self,
ts: &mut TagStructWriter<'_>,
_protocol_version: u16,
) -> Result<(), ProtocolError>
fn write( &self, ts: &mut TagStructWriter<'_>, _protocol_version: u16, ) -> Result<(), ProtocolError>
Write
self into a tagstruct.impl Copy for CorkStreamParams
impl Eq for CorkStreamParams
impl StructuralPartialEq for CorkStreamParams
Auto Trait Implementations§
impl Freeze for CorkStreamParams
impl RefUnwindSafe for CorkStreamParams
impl Send for CorkStreamParams
impl Sync for CorkStreamParams
impl Unpin for CorkStreamParams
impl UnwindSafe for CorkStreamParams
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