pub struct SendTitleAction {
pub player_uuid: String,
pub title: String,
pub subtitle: Option<String>,
pub fade_in_ms: Option<i64>,
pub duration_ms: Option<i64>,
pub fade_out_ms: Option<i64>,
}Expand description
UI & Communication
Fields§
§player_uuid: String§title: String§subtitle: Option<String>§fade_in_ms: Option<i64>§duration_ms: Option<i64>§fade_out_ms: Option<i64>Implementations§
Source§impl SendTitleAction
impl SendTitleAction
Sourcepub fn subtitle(&self) -> &str
pub fn subtitle(&self) -> &str
Returns the value of subtitle, or the default value if subtitle is unset.
Sourcepub fn fade_in_ms(&self) -> i64
pub fn fade_in_ms(&self) -> i64
Returns the value of fade_in_ms, or the default value if fade_in_ms is unset.
Sourcepub fn duration_ms(&self) -> i64
pub fn duration_ms(&self) -> i64
Returns the value of duration_ms, or the default value if duration_ms is unset.
Sourcepub fn fade_out_ms(&self) -> i64
pub fn fade_out_ms(&self) -> i64
Returns the value of fade_out_ms, or the default value if fade_out_ms is unset.
Trait Implementations§
Source§impl Clone for SendTitleAction
impl Clone for SendTitleAction
Source§fn clone(&self) -> SendTitleAction
fn clone(&self) -> SendTitleAction
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 SendTitleAction
impl Debug for SendTitleAction
Source§impl Default for SendTitleAction
impl Default for SendTitleAction
Source§impl Message for SendTitleAction
impl Message for SendTitleAction
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 SendTitleAction
impl PartialEq for SendTitleAction
impl StructuralPartialEq for SendTitleAction
Auto Trait Implementations§
impl Freeze for SendTitleAction
impl RefUnwindSafe for SendTitleAction
impl Send for SendTitleAction
impl Sync for SendTitleAction
impl Unpin for SendTitleAction
impl UnwindSafe for SendTitleAction
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