pub struct DanmuWebPlayerConfig {Show 26 fields
pub dm_switch: bool,
pub ai_switch: bool,
pub ai_level: i32,
pub blocktop: bool,
pub blockscroll: bool,
pub blockbottom: bool,
pub blockcolor: bool,
pub blockspecial: bool,
pub preventshade: bool,
pub dmask: bool,
pub opacity: f32,
pub dmarea: i32,
pub speedplus: f32,
pub fontsize: f32,
pub screensync: bool,
pub speedsync: bool,
pub fontfamily: String,
pub bold: bool,
pub fontborder: i32,
pub draw_type: String,
pub senior_mode_switch: i32,
pub ai_level_v2: i32,
pub ai_level_v2_map: HashMap<i32, i32>,
pub blocktop_bottom: bool,
pub dm_area_v2: i32,
pub dm_density: i32,
}Expand description
Fields§
§dm_switch: bool§ai_switch: bool§ai_level: i32§blocktop: bool§blockscroll: bool§blockbottom: bool§blockcolor: bool§blockspecial: bool§preventshade: bool§dmask: bool§opacity: f32§dmarea: i32§speedplus: f32§fontsize: f32§screensync: bool§speedsync: bool§fontfamily: String§bold: bool§fontborder: i32§draw_type: String§senior_mode_switch: i32§ai_level_v2: i32§ai_level_v2_map: HashMap<i32, i32>§blocktop_bottom: bool§dm_area_v2: i32§dm_density: i32Trait Implementations§
Source§impl Clone for DanmuWebPlayerConfig
impl Clone for DanmuWebPlayerConfig
Source§fn clone(&self) -> DanmuWebPlayerConfig
fn clone(&self) -> DanmuWebPlayerConfig
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 DanmuWebPlayerConfig
impl Debug for DanmuWebPlayerConfig
Source§impl Default for DanmuWebPlayerConfig
impl Default for DanmuWebPlayerConfig
Source§impl Message for DanmuWebPlayerConfig
impl Message for DanmuWebPlayerConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for DanmuWebPlayerConfig
impl PartialEq for DanmuWebPlayerConfig
impl StructuralPartialEq for DanmuWebPlayerConfig
Auto Trait Implementations§
impl Freeze for DanmuWebPlayerConfig
impl RefUnwindSafe for DanmuWebPlayerConfig
impl Send for DanmuWebPlayerConfig
impl Sync for DanmuWebPlayerConfig
impl Unpin for DanmuWebPlayerConfig
impl UnwindSafe for DanmuWebPlayerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request