pub struct DanmuDefaultPlayerConfig {Show 18 fields
pub player_danmaku_use_default_config: bool,
pub player_danmaku_ai_recommended_switch: bool,
pub player_danmaku_ai_recommended_level: i32,
pub player_danmaku_blocktop: bool,
pub player_danmaku_blockscroll: bool,
pub player_danmaku_blockbottom: bool,
pub player_danmaku_blockcolorful: bool,
pub player_danmaku_blockrepeat: bool,
pub player_danmaku_blockspecial: bool,
pub player_danmaku_opacity: f32,
pub player_danmaku_scalingfactor: f32,
pub player_danmaku_domain: f32,
pub player_danmaku_speed: i32,
pub inline_player_danmaku_switch: bool,
pub player_danmaku_senior_mode_switch: i32,
pub player_danmaku_ai_recommended_level_v2: i32,
pub player_danmaku_ai_recommended_level_v2_map: HashMap<i32, i32>,
pub player_danmaku_enable_herd_dm: bool,
}Expand description
Fields§
§player_danmaku_use_default_config: bool§player_danmaku_ai_recommended_switch: bool§player_danmaku_ai_recommended_level: i32§player_danmaku_blocktop: bool§player_danmaku_blockscroll: bool§player_danmaku_blockbottom: bool§player_danmaku_blockcolorful: bool§player_danmaku_blockrepeat: bool§player_danmaku_blockspecial: bool§player_danmaku_opacity: f32§player_danmaku_scalingfactor: f32§player_danmaku_domain: f32§player_danmaku_speed: i32§inline_player_danmaku_switch: bool§player_danmaku_senior_mode_switch: i32§player_danmaku_ai_recommended_level_v2: i32§player_danmaku_ai_recommended_level_v2_map: HashMap<i32, i32>§player_danmaku_enable_herd_dm: boolTrait Implementations§
Source§impl Clone for DanmuDefaultPlayerConfig
impl Clone for DanmuDefaultPlayerConfig
Source§fn clone(&self) -> DanmuDefaultPlayerConfig
fn clone(&self) -> DanmuDefaultPlayerConfig
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 DanmuDefaultPlayerConfig
impl Debug for DanmuDefaultPlayerConfig
Source§impl Default for DanmuDefaultPlayerConfig
impl Default for DanmuDefaultPlayerConfig
Source§impl Message for DanmuDefaultPlayerConfig
impl Message for DanmuDefaultPlayerConfig
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 DanmuDefaultPlayerConfig
impl PartialEq for DanmuDefaultPlayerConfig
impl StructuralPartialEq for DanmuDefaultPlayerConfig
Auto Trait Implementations§
impl Freeze for DanmuDefaultPlayerConfig
impl RefUnwindSafe for DanmuDefaultPlayerConfig
impl Send for DanmuDefaultPlayerConfig
impl Sync for DanmuDefaultPlayerConfig
impl Unpin for DanmuDefaultPlayerConfig
impl UnwindSafe for DanmuDefaultPlayerConfig
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